Skip to content

Commit

Permalink
disable merge
Browse files Browse the repository at this point in the history
Signed-off-by: bufferflies <1045931706@qq.com>
  • Loading branch information
bufferflies committed Aug 18, 2023
1 parent e20ea5b commit 83b456b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/schedule/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ const (
DefaultMaxReplicas = 3
defaultMaxSnapshotCount = 64
defaultMaxPendingPeerCount = 64
defaultMaxMergeRegionSize = 20
defaultMaxMergeRegionSize = 0
defaultLeaderScheduleLimit = 4
defaultRegionScheduleLimit = 2048
defaultWitnessScheduleLimit = 4
defaultReplicaScheduleLimit = 64
defaultMergeScheduleLimit = 8
defaultMergeScheduleLimit = 0
defaultHotRegionScheduleLimit = 4
defaultTolerantSizeRatio = 0
defaultLowSpaceRatio = 0.8
Expand Down
4 changes: 1 addition & 3 deletions server/config/persist_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -764,11 +764,9 @@ type persistedConfig struct {

// Persist saves the configuration to the storage.
func (o *PersistOptions) Persist(storage endpoint.ConfigStorage) error {
schedulerCfg := o.GetScheduleConfig()
schedulerCfg.MaxMergeRegionSize = 0
cfg := &persistedConfig{
Config: &Config{
Schedule: *schedulerCfg,
Schedule: *o.GetScheduleConfig(),
Replication: *o.GetReplicationConfig(),
PDServerCfg: *o.GetPDServerConfig(),
ReplicationMode: *o.GetReplicationModeConfig(),
Expand Down

0 comments on commit 83b456b

Please sign in to comment.