summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahooinc.com>2022-01-18 09:46:40 +0000
committerTor Brede Vekterli <vekterli@yahooinc.com>2022-01-18 09:46:40 +0000
commite07e686c3701ecbbf2afb97a0e6bd2f548f90310 (patch)
treee9ad0c5eaacbba9b832b36633639a2d89205038e /storage
parentfc5aa4918f3d7921f7a52d1d42c23c845a7caa73 (diff)
Tune persistence dynamic throttling policy
Currently hardcoded to use values that have been empirically observed to give good results. Can change this to be configurable later if needed.
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/persistence/shared_operation_throttler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/src/vespa/storage/persistence/shared_operation_throttler.cpp b/storage/src/vespa/storage/persistence/shared_operation_throttler.cpp
index 7b05decb851..7db1a0ccdbb 100644
--- a/storage/src/vespa/storage/persistence/shared_operation_throttler.cpp
+++ b/storage/src/vespa/storage/persistence/shared_operation_throttler.cpp
@@ -59,6 +59,8 @@ DynamicOperationThrottler::DynamicOperationThrottler(uint32_t min_size_and_windo
_pending_ops(0),
_waiting_threads(0)
{
+ _throttle_policy.setWindowSizeDecrementFactor(1.2);
+ _throttle_policy.setWindowSizeBackOff(0.95);
}
DynamicOperationThrottler::~DynamicOperationThrottler() = default;