Skip to content

Commit 3604237

Browse files
craig[bot]kvoli
andcommitted
Merge #113667
113667: allocator: lower default IO overload threshold r=sumeerbhola a=kvoli The IO overload threshold determines whether a store will be excluded as a target for rebalancing replicas, or leases onto it. The previous thresholds were `0.8` for replica rebalancing (`kv.allocator.replica_io_overload_threshold`) and `0.5` for lease transfers (`kv.allocator.lease_io_overload_threshold`). The previous settings were selected when Admission Control (AC) attempted to stabilize IO overload at a threshold of 1.0. AC will now typically stabilize a store to a threshold of 0.5. Lower the thresholds to `0.4` for replica rebalancing and `0.3` for lease transfers. Note that a store needs to both exceed the absolute threshold mentioned above, as well as be greater than `+10% * mean` of equivalent rebalancing candidates. Resolves: #112497 Release note: None Co-authored-by: Austen McClernon <[email protected]>
2 parents d108641 + 6aa5c69 commit 3604237

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/kv/kvserver/allocator/allocatorimpl/allocator_scorer.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ const (
7474
// DefaultReplicaIOOverloadThreshold is used to avoid allocating to stores with an
7575
// IO overload score greater than what's set. This is typically used in
7676
// conjunction with IOOverloadMeanThreshold below.
77-
DefaultReplicaIOOverloadThreshold = 0.8
77+
DefaultReplicaIOOverloadThreshold = 0.4
7878

79-
// DefaultLeaseIOOverloadThreshold is used to shed leases from stores with an
80-
// IO overload score greater than this threshold. This is typically used in
81-
// conjunction with IOOverloadMeanThreshold below.
82-
DefaultLeaseIOOverloadThreshold = 0.5
79+
// DefaultLeaseIOOverloadThreshold is used to block lease transfers to stores
80+
// with an IO overload score greater than this threshold. This is typically
81+
// used in conjunction with IOOverloadMeanThreshold below.
82+
DefaultLeaseIOOverloadThreshold = 0.3
8383

8484
// DefaultLeaseIOOverloadShedThreshold is used to shed leases from stores
8585
// with an IO overload score greater than the this threshold. This is

0 commit comments

Comments
 (0)