Skip to content

Commit d9310e1

Browse files
committed
fix tests
Signed-off-by: lhy1024 <admin@liudos.us>
1 parent 35223a2 commit d9310e1

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

tests/server/api/scheduler_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,13 @@ func (suite *scheduleTestSuite) checkAPI(cluster *tests.TestCluster) {
249249
"min-hot-byte-rate": 100.0,
250250
"min-hot-key-rate": 10.0,
251251
"min-hot-query-rate": 10.0,
252+
"min-hot-cpu-rate": 1.0,
252253
"max-zombie-rounds": 3.0,
253254
"max-peer-number": 1000.0,
254255
"byte-rate-rank-step-ratio": 0.05,
255256
"key-rate-rank-step-ratio": 0.05,
256257
"query-rate-rank-step-ratio": 0.05,
258+
"cpu-rate-rank-step-ratio": 0.05,
257259
"count-rank-step-ratio": 0.01,
258260
"great-dec-ratio": 0.95,
259261
"minor-dec-ratio": 0.99,

tools/pd-ctl/pdctl/command/scheduler_command.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,7 @@ var hiddenHotConfig = []string{
718718
"byte-rate-rank-step-ratio",
719719
"key-rate-rank-step-ratio",
720720
"query-rate-rank-step-ratio",
721+
"cpu-rate-rank-step-ratio",
721722
"count-rank-step-ratio",
722723
"great-dec-ratio",
723724
"minor-dec-ratio",

tools/pd-ctl/tests/scheduler/scheduler_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ func (suite *schedulerTestSuite) checkHotRegionSchedulerConfig(cluster *pdTests.
700700
"min-hot-byte-rate": float64(100),
701701
"min-hot-key-rate": float64(10),
702702
"min-hot-query-rate": float64(10),
703+
"min-hot-cpu-rate": float64(1),
703704
"src-tolerance-ratio": 1.05,
704705
"dst-tolerance-ratio": 1.05,
705706
"read-priorities": []any{"byte", "key"},

0 commit comments

Comments
 (0)