From 42d34f3fe9f1864b7a7d974d2506a9f3ca024d1f Mon Sep 17 00:00:00 2001 From: Wenxuan Date: Tue, 16 May 2023 15:06:19 +0800 Subject: [PATCH] Output PD endpoints in tikv-slim mode (#2196) --- components/playground/playground.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/playground/playground.go b/components/playground/playground.go index 8c4e3f6e3e..26827ef64e 100644 --- a/components/playground/playground.go +++ b/components/playground/playground.go @@ -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) }