多次启动,成功的时候,对应的日志如下,虽然也报ErrEtcdGetCluster但是又启动成功了:
[2024/07/12 03:06:08.105 +00:00] [INFO] [serve.go:145] [“serving client traffic insecurely; this is strongly discouraged!”] [address=“[::]:2379”]
2024-07-12 03:06:15.109376 W | etcdserver: could not get cluster response from http://basic-pd-0.basic-pd-peer.ns.svc:2380: Get “http://basic-pd-0.basic-pd-peer.ns.svc:2380/members”: c
ontext deadline exceeded (Client.Timeout exceeded while awaiting headers)
[2024/07/12 03:06:15.109 +00:00] [ERROR] [etcdutil.go:71] [“failed to get cluster from remote”] [error=“[PD:etcd:ErrEtcdGetCluster]could not retrieve cluster information from the given URLs: could not retriev
e cluster information from the given URLs”]
[2024/07/12 03:06:15.109 +00:00] [INFO] [server.go:335] [“create etcd v3 client”] [endpoints=“[http://basic-pd-0.basic-pd-peer.ns.svc:2379]”] [cert=“{"cacert-path":"","cert-path":"","key-
path":"","cert-allowed-cn":null,"SSLCABytes":null,"SSLCertBytes":null,"SSLKEYBytes":null,"redact-info-log":false,"encryption":{"data-encryption-method":"plaintext","data-key-rotation-perio
d":"168h0m0s","master-key":{"type":"plaintext","key-id":"","region":"","endpoint":"","path":""}}}”]
[2024/07/12 03:06:15.112 +00:00] [INFO] [server.go:400] [“init cluster id”] [cluster-id=7385453281335235694]
[2024/07/12 03:06:15.126 +00:00] [INFO] [allocator_manager.go:262] [“delete the dc-location key previously written in etcd”] [server-id=4882505430828322715]
[2024/07/12 03:06:15.157 +00:00] [INFO] [history_buffer.go:147] [“start from history index”] [start-index=728800]
[2024/07/12 03:06:15.166 +00:00] [INFO] [server.go:1489] [“start to campaign pd leader”] [campaign-pd-leader-name=basic-pd-0]