Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: enlarge the default value of max-merge-region-size. #8445

Merged
merged 11 commits into from
Aug 2, 2024
11 changes: 7 additions & 4 deletions pkg/schedule/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ import (

const (
// DefaultMaxReplicas is the default number of replicas for each region.
DefaultMaxReplicas = 3
defaultMaxSnapshotCount = 64
defaultMaxPendingPeerCount = 64
defaultMaxMergeRegionSize = 20
DefaultMaxReplicas = 3
defaultMaxSnapshotCount = 64
defaultMaxPendingPeerCount = 64
// defaultMaxMergeRegionSize is the default maximum size of region when regions can be merged.
// After https://github.com/tikv/tikv/issues/17309, the default value is enlarged from 20 to 54,
// to make it compatible with the default value of region size of tikv.
defaultMaxMergeRegionSize = 54
defaultLeaderScheduleLimit = 4
defaultRegionScheduleLimit = 2048
defaultWitnessScheduleLimit = 4
Expand Down
Loading