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

playground: Fix typo and update #2454

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -804,7 +804,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 @@ -828,7 +828,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 @@ -872,7 +872,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
Loading