Skip to content

Commit

Permalink
playground: fix typo and update (#2454)
Browse files Browse the repository at this point in the history
Signed-off-by: Wish <[email protected]>
  • Loading branch information
breezewish authored Nov 8, 2024
1 parent b53edf7 commit 1a929f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/playground/instance/pd_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (inst *PDInstance) getConfig() map[string]any {
config["replication.enable-placement-rules"] = true
config["replication.max-replica"] = 1
config["schedule.merge-schedule-limit"] = 0
config["schedule.low-space-ration"] = 1.0
config["schedule.low-space-ratio"] = 1.0
config["schedule.replica-schedule-limit"] = 500
}

Expand Down
14 changes: 11 additions & 3 deletions components/playground/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ func (p *Playground) waitAllDBUp() ([]string, []string) {
}
for _, db := range p.tidbs {
wg.Add(1)
prefix := db.Addr()
prefix := "- TiDB: " + db.Addr()
bar := bars.AddBar(prefix)
go func(dbInst *instance.TiDBInstance) {
defer wg.Done()
Expand All @@ -908,7 +908,7 @@ func (p *Playground) waitAllDBUp() ([]string, []string) {
}
for _, db := range p.tiproxys {
wg.Add(1)
prefix := color.YellowString(db.Addr())
prefix := "- TiProxy: " + db.Addr()
bar := bars.AddBar(prefix)
go func(dbInst *instance.TiProxy) {
defer wg.Done()
Expand Down Expand Up @@ -952,7 +952,15 @@ func (p *Playground) waitAllTiFlashUp() {
bars := progress.NewMultiBar(colorstr.Sprintf("[dark_gray]Waiting for tiflash instances ready"))
for _, flash := range p.tiflashs {
wg.Add(1)
prefix := flash.Addr()

tiflashKindName := "TiFlash"
if flash.Role == instance.TiFlashRoleDisaggCompute {
tiflashKindName = "TiFlash (CN)"
} else if flash.Role == instance.TiFlashRoleDisaggWrite {
tiflashKindName = "TiFlash (WN)"
}

prefix := fmt.Sprintf("- %s: %s", tiflashKindName, flash.Addr())
bar := bars.AddBar(prefix)
go func(flashInst *instance.TiFlashInstance) {
defer wg.Done()
Expand Down

0 comments on commit 1a929f1

Please sign in to comment.