Skip to content

Commit 2e84920

Browse files
craig[bot]kvoli
craig[bot]
andcommitted
Merge #109807
109807: roachtest: widen rebalance-by-load CPU buffer r=andrewbaptist a=kvoli The `rebalance-by-load` roachtests are historically brittle, as they assert on a dynamic property in the system. In #109768, we saw that whilst the replica CPU was below the upper threshold (110% * mean), the CPU utilization of the highest CPU utilization nodes was +16% of the mean. Bump the test expectation to +20% to reduce noise. Resolves: #109768 Release note: None Co-authored-by: Austen McClernon <[email protected]>
2 parents b5cef20 + 4447bf6 commit 2e84920

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pkg/cmd/roachtest/tests/rebalance_load.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ const (
4444
// [mean - mean_tolerance, mean + mean_tolerance].
4545
//
4646
// The store rebalancer watches the replica CPU load and balances within
47-
// +-10% of the mean. To reduce noise, add a buffer (5%) ontop.
48-
meanCPUTolerance = 0.15
47+
// +-10% of the mean (by default). To reduce noise, add a buffer (+10%)
48+
// ontop.
49+
// TODO(kvoli): Reduce the buffer once we attribute other CPU usage to a
50+
// store via a node, such a SQL execution, stats collection and compactions.
51+
// See #109768.
52+
meanCPUTolerance = 0.20
4953
// statSamplePeriod is the period at which timeseries stats are sampled.
5054
statSamplePeriod = 10 * time.Second
5155
// stableDuration is the duration which the cluster's load must remain

0 commit comments

Comments
 (0)