diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-01-18 09:46:40 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-01-18 09:46:40 +0000 |
commit | e07e686c3701ecbbf2afb97a0e6bd2f548f90310 (patch) | |
tree | e9ad0c5eaacbba9b832b36633639a2d89205038e /storage | |
parent | fc5aa4918f3d7921f7a52d1d42c23c845a7caa73 (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.cpp | 2 |
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; |