Skip to content

Commit

Permalink
Output PD endpoints in tikv-slim mode (#2196)
Browse files Browse the repository at this point in the history
  • Loading branch information
breezewish authored May 16, 2023
1 parent 802fb15 commit 42d34f3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/playground/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,15 @@ func (p *Playground) bootCluster(ctx context.Context, env *environment.Environme
colorCmd.Printf("http://%s/dashboard\n", pdAddr)
}

if p.bootOptions.Mode == "tikv-slim" {
var pdAddrs []string
for _, pd := range p.pds {
pdAddrs = append(pdAddrs, pd.Addr())
}
fmt.Printf("PD Endpoints: ")
colorCmd.Printf("%s\n", strings.Join(pdAddrs, ","))
}

if monitorInfo != nil {
p.updateMonitorTopology(spec.ComponentPrometheus, *monitorInfo)
}
Expand Down

0 comments on commit 42d34f3

Please sign in to comment.