Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Wish <[email protected]>
  • Loading branch information
breezewish committed Jan 16, 2025
1 parent 62b0c95 commit d75657b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/playground/instance/pd_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ package instance
func (inst *PDInstance) getConfig() map[string]any {
config := make(map[string]any)
config["schedule.patrol-region-interval"] = "100ms"
config["replication.max-replica"] = 1
config["schedule.low-space-ratio"] = 1.0

if inst.mode == "tidb-cse" {
config["keyspace.pre-alloc"] = []string{"mykeyspace"}
config["replication.enable-placement-rules"] = true
config["replication.max-replica"] = 1
config["schedule.merge-schedule-limit"] = 0
config["schedule.low-space-ratio"] = 1.0
config["schedule.replica-schedule-limit"] = 500
}

Expand Down
2 changes: 1 addition & 1 deletion components/playground/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ func (p *Playground) bootCluster(ctx context.Context, env *environment.Environme
instances = append(instances,
InstancePair{spec.ComponentTiFlash, instance.PDRoleNormal, instance.TiFlashRoleNormal, options.TiFlash},
)
} else if options.Mode == "tidb-cse" {
} else if options.Mode == "tidb-cse" || options.Mode == "tiflash-disagg" {
if !tidbver.TiFlashPlaygroundNewStartMode(options.Version) {
// For simplicity, currently we only implemented disagg mode when TiFlash can run without config.
return fmt.Errorf("TiUP playground only supports CSE/Disagg mode for TiDB cluster >= v7.1.0 (or nightly)")
Expand Down

0 comments on commit d75657b

Please sign in to comment.