在tidb-monitor的grafana面板内只能发现一个pd节点

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

  • 【TiDB 版本】:tidb-operator v1.1 tidb v4.0.4
  • 【问题描述】:

按照doc建设了一套demo tidb,但是在monitor内只能看到一个pd节点,实际有3个pd节点


prometheus内可以发现3个pd targets

附pd-0日志:

Name:      tidb-test-pd-0.tidb-test-pd-peer.default.svc
Address 1: 192.168.57.130 tidb-test-pd-0.tidb-test-pd-peer.default.svc.hh-b.brainpp.cn
nslookup domain tidb-test-pd-0.tidb-test-pd-peer.default.svc.svc success
starting pd-server ...
/pd-server --data-dir=/var/lib/pd --name=tidb-test-pd-0 --peer-urls=http://0.0.0.0:2380 --advertise-peer-urls=http://tidb-test-pd-0.tidb-test-pd-peer.default.svc:2380 --client-urls=http://0.0.0.0:2379 --advertise-client-urls=http://tidb-test-pd-0.tidb-test-pd-peer.default.svc:2379 --config=/etc/pd/pd.toml --join=http://tidb-test-pd-1.tidb-test-pd-peer.default.svc:2379,http://tidb-test-pd-2.tidb-test-pd-peer.default.svc:2379
[2020/09/07 08:45:28.806 +00:00] [INFO] [util.go:41] ["Welcome to Placement Driver (PD)"]
[2020/09/07 08:45:28.806 +00:00] [INFO] [util.go:42] [PD] [release-version=v4.0.4]
[2020/09/07 08:45:28.806 +00:00] [INFO] [util.go:43] [PD] [edition=Community]
[2020/09/07 08:45:28.806 +00:00] [INFO] [util.go:44] [PD] [git-hash=096ab27038530fcf674a9f9d872609ec2656ee73]
[2020/09/07 08:45:28.806 +00:00] [INFO] [util.go:45] [PD] [git-branch=heads/refs/tags/v4.0.4]
[2020/09/07 08:45:28.806 +00:00] [INFO] [util.go:46] [PD] [utc-build-time="2020-07-29 03:13:19"]
[2020/09/07 08:45:28.806 +00:00] [INFO] [metricutil.go:81] ["disable Prometheus push client"]
[2020/09/07 08:45:28.806 +00:00] [ERROR] [join.go:213] ["failed to open directory"] [error="open /var/lib/pd/member: no such file or directory"]
2020/09/07 08:45:28.806 grpclog.go:45: [info] parsed scheme: "endpoint"
2020/09/07 08:45:28.806 grpclog.go:45: [info] ccResolverWrapper: sending new addresses to cc: [{http://tidb-test-pd-1.tidb-test-pd-peer.default.svc:2379 0  <nil>} {http://tidb-test-pd-2.tidb-test-pd-peer.default.svc:2379 0  <nil>}]
[2020/09/07 08:45:28.815 +00:00] [INFO] [server.go:211] ["PD Config"] [config="{\"client-urls\":\"http://0.0.0.0:2379\",\"peer-urls\":\"http://0.0.0.0:2380\",\"advertise-client-urls\":\"http://tidb-test-pd-0.tidb-test-pd-peer.default.svc:2379\",\"advertise-peer-urls\":\"http://tidb-test-pd-0.tidb-test-pd-peer.default.svc:2380\",\"name\":\"tidb-test-pd-0\",\"data-dir\":\"/var/lib/pd\",\"force-new-cluster\":false,\"enable-grpc-gateway\":true,\"initial-cluster\":\"tidb-test-pd-1=http://tidb-test-pd-1.tidb-test-pd-peer.default.svc:2380,tidb-test-pd-0=http://tidb-test-pd-0.tidb-test-pd-peer.default.svc:2380,tidb-test-pd-2=http://tidb-test-pd-2.tidb-test-pd-peer.default.svc:2380\",\"initial-cluster-state\":\"existing\",\"join\":\"http://tidb-test-pd-1.tidb-test-pd-peer.default.svc:2379,http://tidb-test-pd-2.tidb-test-pd-peer.default.svc:2379\",\"lease\":3,\"log\":{\"level\":\"info\",\"format\":\"text\",\"disable-timestamp\":false,\"file\":{\"filename\":\"\",\"max-size\":0,\"max-days\":0,\"max-backups\":0},\"development\":false,\"disable-caller\":false,\"disable-stacktrace\":false,\"disable-error-verbose\":true,\"sampling\":null},\"tso-save-interval\":\"3s\",\"metric\":{\"job\":\"tidb-test-pd-0\",\"address\":\"\",\"interval\":\"15s\"},\"schedule\":{\"max-snapshot-count\":3,\"max-pending-peer-count\":16,\"max-merge-region-size\":20,\"max-merge-region-keys\":200000,\"split-merge-interval\":\"1h0m0s\",\"enable-one-way-merge\":\"false\",\"enable-cross-table-merge\":\"false\",\"patrol-region-interval\":\"100ms\",\"max-store-down-time\":\"30m0s\",\"leader-schedule-limit\":4,\"leader-schedule-policy\":\"count\",\"region-schedule-limit\":2048,\"replica-schedule-limit\":64,\"merge-schedule-limit\":8,\"hot-region-schedule-limit\":4,\"hot-region-cache-hits-threshold\":3,\"store-limit\":null,\"tolerant-size-ratio\":0,\"low-space-ratio\":0.8,\"high-space-ratio\":0.7,\"scheduler-max-waiting-operator\":5,\"enable-remove-down-replica\":\"true\",\"enable-replace-offline-replica\":\"true\",\"enable-make-up-replica\":\"true\",\"enable-remove-extra-replica\":\"true\",\"enable-location-replacement\":\"true\",\"enable-debug-metrics\":\"false\",\"schedulers-v2\":[{\"type\":\"balance-region\",\"args\":null,\"disable\":false,\"args-payload\":\"\"},{\"type\":\"balance-leader\",\"args\":null,\"disable\":false,\"args-payload\":\"\"},{\"type\":\"hot-region\",\"args\":null,\"disable\":false,\"args-payload\":\"\"},{\"type\":\"label\",\"args\":null,\"disable\":false,\"args-payload\":\"\"}],\"schedulers-payload\":null,\"store-limit-mode\":\"manual\"},\"replication\":{\"max-replicas\":3,\"location-labels\":\"zone,host\",\"strictly-match-label\":\"false\",\"enable-placement-rules\":\"true\"},\"pd-server\":{\"use-region-storage\":\"true\",\"max-gap-reset-ts\":\"24h0m0s\",\"key-type\":\"table\",\"runtime-services\":\"\",\"metric-storage\":\"\",\"dashboard-address\":\"auto\"},\"cluster-version\":\"0.0.0\",\"quota-backend-bytes\":\"8GiB\",\"auto-compaction-mode\":\"periodic\",\"auto-compaction-retention-v2\":\"1h\",\"TickInterval\":\"500ms\",\"ElectionInterval\":\"3s\",\"PreVote\":true,\"security\":{\"cacert-path\":\"\",\"cert-path\":\"\",\"key-path\":\"\",\"cert-allowed-cn\":null},\"label-property\":null,\"WarningMsgs\":null,\"DisableStrictReconfigCheck\":false,\"HeartbeatStreamBindInterval\":\"1m0s\",\"LeaderPriorityCheckInterval\":\"1m0s\",\"dashboard\":{\"tidb-cacert-path\":\"\",\"tidb-cert-path\":\"\",\"tidb-key-path\":\"\",\"public-path-prefix\":\"\",\"internal-proxy\":false,\"enable-telemetry\":true},\"replication-mode\":{\"replication-mode\":\"majority\",\"dr-auto-sync\":{\"label-key\":\"\",\"primary\":\"\",\"dr\":\"\",\"primary-replicas\":0,\"dr-replicas\":0,\"wait-store-timeout\":\"1m0s\",\"wait-sync-timeout\":\"1m0s\"}}}"]
[2020/09/07 08:45:28.817 +00:00] [INFO] [server.go:184] ["register REST path"] [path=/pd/api/v1]
[2020/09/07 08:45:28.817 +00:00] [INFO] [server.go:184] ["register REST path"] [path=/swagger/]
[2020/09/07 08:45:28.818 +00:00] [INFO] [server.go:184] ["register REST path"] [path=/dashboard/api/]
[2020/09/07 08:45:28.818 +00:00] [INFO] [server.go:184] ["register REST path"] [path=/dashboard/]
[2020/09/07 08:45:28.818 +00:00] [INFO] [etcd.go:117] ["configuring peer listeners"] [listen-peer-urls="[http://0.0.0.0:2380]"]
[2020/09/07 08:45:28.818 +00:00] [INFO] [systime_mon.go:26] ["start system time monitor"]
[2020/09/07 08:45:28.818 +00:00] [INFO] [etcd.go:127] ["configuring client listeners"] [listen-client-urls="[http://0.0.0.0:2379]"]
[2020/09/07 08:45:28.818 +00:00] [INFO] [etcd.go:602] ["pprof is enabled"] [path=/debug/pprof]
[2020/09/07 08:45:28.818 +00:00] [INFO] [etcd.go:299] ["starting an etcd server"] [etcd-version=3.4.3] [git-sha="Not provided (use ./build instead of go build)"] [go-version=go1.13] [go-os=linux] [go-arch=amd64] [max-cpu-set=64] [max-cpu-available=64] [member-initialized=false] [name=tidb-test-pd-0] [data-dir=/var/lib/pd] [wal-dir=] [wal-dir-dedicated=] [member-dir=/var/lib/pd/member] [force-new-cluster=false] [heartbeat-interval=500ms] [election-timeout=3s] [initial-election-tick-advance=true] [snapshot-count=100000] [snapshot-catchup-entries=5000] [initial-advertise-peer-urls="[http://tidb-test-pd-0.tidb-test-pd-peer.default.svc:2380]"] [listen-peer-urls="[http://0.0.0.0:2380]"] [advertise-client-urls="[http://tidb-test-pd-0.tidb-test-pd-peer.default.svc:2379]"] [listen-client-urls="[http://0.0.0.0:2379]"] [listen-metrics-urls="[]"] [cors="[*]"] [host-whitelist="[*]"] [initial-cluster="tidb-test-pd-0=http://tidb-test-pd-0.tidb-test-pd-peer.default.svc:2380,tidb-test-pd-1=http://tidb-test-pd-1.tidb-test-pd-peer.default.svc:2380,tidb-test-pd-2=http://tidb-test-pd-2.tidb-test-pd-peer.default.svc:2380"] [initial-cluster-state=existing] [initial-cluster-token=etcd-cluster] [quota-size-bytes=8589934592] [pre-vote=true] [initial-corrupt-check=false] [corrupt-check-time-interval=0s] [auto-compaction-mode=periodic] [auto-compaction-retention=1h0m0s] [auto-compaction-interval=1h0m0s] [discovery-url=] [discovery-proxy=]
[2020/09/07 08:45:28.820 +00:00] [INFO] [backend.go:79] ["opened backend db"] [path=/var/lib/pd/member/snap/db] [took=900.822µs]
[2020/09/07 08:45:28.824 +00:00] [INFO] [netutil.go:112] ["resolved URL Host"] [url=http://tidb-test-pd-0.tidb-test-pd-peer.default.svc:2380] [host=tidb-test-pd-0.tidb-test-pd-peer.default.svc:2380] [resolved-addr=192.168.57.130:2380]
[2020/09/07 08:45:28.826 +00:00] [INFO] [netutil.go:112] ["resolved URL Host"] [url=http://tidb-test-pd-0.tidb-test-pd-peer.default.svc:2380] [host=tidb-test-pd-0.tidb-test-pd-peer.default.svc:2380] [resolved-addr=192.168.57.130:2380]
[2020/09/07 08:45:28.828 +00:00] [INFO] [netutil.go:112] ["resolved URL Host"] [url=http://tidb-test-pd-1.tidb-test-pd-peer.default.svc:2380] [host=tidb-test-pd-1.tidb-test-pd-peer.default.svc:2380] [resolved-addr=192.168.59.154:2380]
[2020/09/07 08:45:28.829 +00:00] [INFO] [netutil.go:112] ["resolved URL Host"] [url=http://tidb-test-pd-1.tidb-test-pd-peer.default.svc:2380] [host=tidb-test-pd-1.tidb-test-pd-peer.default.svc:2380] [resolved-addr=192.168.59.154:2380]
[2020/09/07 08:45:28.831 +00:00] [INFO] [netutil.go:112] ["resolved URL Host"] [url=http://tidb-test-pd-2.tidb-test-pd-peer.default.svc:2380] [host=tidb-test-pd-2.tidb-test-pd-peer.default.svc:2380] [resolved-addr=192.168.56.127:2380]
[2020/09/07 08:45:28.833 +00:00] [INFO] [netutil.go:112] ["resolved URL Host"] [url=http://tidb-test-pd-2.tidb-test-pd-peer.default.svc:2380] [host=tidb-test-pd-2.tidb-test-pd-peer.default.svc:2380] [resolved-addr=192.168.56.127:2380]
[2020/09/07 08:45:28.836 +00:00] [INFO] [raft.go:456] ["starting local member"] [local-member-id=519ab548d31fb894] [cluster-id=c557a372125cf7ec]
[2020/09/07 08:45:28.836 +00:00] [INFO] [raft.go:1530] ["519ab548d31fb894 switched to configuration voters=()"]
[2020/09/07 08:45:28.836 +00:00] [INFO] [raft.go:700] ["519ab548d31fb894 became follower at term 0"]
[2020/09/07 08:45:28.836 +00:00] [INFO] [raft.go:383] ["newRaft 519ab548d31fb894 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]"]
[2020/09/07 08:45:28.837 +00:00] [WARN] [store.go:1317] ["simple token is not cryptographically signed"]
[2020/09/07 08:45:28.837 +00:00] [INFO] [quota.go:126] ["enabled backend quota"] [quota-name=v3-applier] [quota-size-bytes=8589934592] [quota-size="8.6 GB"]
[2020/09/07 08:45:28.837 +00:00] [INFO] [pipeline.go:71] ["started HTTP pipelining with remote peer"] [local-member-id=519ab548d31fb894] [remote-peer-id=23f226bac53923d8]
[2020/09/07 08:45:28.837 +00:00] [INFO] [transport.go:294] ["added new remote peer"] [local-member-id=519ab548d31fb894] [remote-peer-id=23f226bac53923d8] [remote-peer-urls="[http://tidb-test-pd-1.tidb-test-pd-peer.default.svc:2380]"]
[2020/09/07 08:45:28.837 +00:00] [INFO] [pipeline.go:71] ["started HTTP pipelining with remote peer"] [local-member-id=519ab548d31fb894] [remote-peer-id=fb88bf73340dfe6e]
[2020/09/07 08:45:28.837 +00:00] [INFO] [transport.go:294] ["added new remote peer"] [local-member-id=519ab548d31fb894] [remote-peer-id=fb88bf73340dfe6e] [remote-peer-urls="[http://tidb-test-pd-2.tidb-test-pd-peer.default.svc:2380]"]
[2020/09/07 08:45:28.837 +00:00] [INFO] [peer.go:128] ["starting remote peer"] [remote-peer-id=23f226bac53923d8]
[2020/09/07 08:45:28.837 +00:00] [INFO] [pipeline.go:71] ["started HTTP pipelining with remote peer"] [local-member-id=519ab548d31fb894] [remote-peer-id=23f226bac53923d8]
[2020/09/07 08:45:28.838 +00:00] [INFO] [stream.go:166] ["started stream writer with remote peer"] [local-member-id=519ab548d31fb894] [remote-peer-id=23f226bac53923d8]
[2020/09/07 08:45:28.838 +00:00] [INFO] [stream.go:166] ["started stream writer with remote peer"] [local-member-id=519ab548d31fb894] [remote-peer-id=23f226bac53923d8]
[2020/09/07 08:45:28.839 +00:00] [INFO] [peer.go:134] ["started remote peer"] [remote-peer-id=23f226bac53923d8]
[2020/09/07 08:45:28.840 +00:00] [INFO] [transport.go:327] ["added remote peer"] [local-member-id=519ab548d31fb894] [remote-peer-id=23f226bac53923d8] [remote-peer-urls="[http://tidb-test-pd-1.tidb-test-pd-peer.default.svc:2380]"]
[2020/09/07 08:45:28.840 +00:00] [INFO] [peer.go:128] ["starting remote peer"] [remote-peer-id=fb88bf73340dfe6e]
[2020/09/07 08:45:28.840 +00:00] [INFO] [pipeline.go:71] ["started HTTP pipelining with remote peer"] [local-member-id=519ab548d31fb894] [remote-peer-id=fb88bf73340dfe6e]
[2020/09/07 08:45:28.840 +00:00] [INFO] [stream.go:406] ["started stream reader with remote peer"] [stream-reader-type="stream Message"] [local-member-id=519ab548d31fb894] [remote-peer-id=23f226bac53923d8]
[2020/09/07 08:45:28.840 +00:00] [INFO] [stream.go:406] ["started stream reader with remote peer"] [stream-reader-type="stream MsgApp v2"] [local-member-id=519ab548d31fb894] [remote-peer-id=23f226bac53923d8]
[2020/09/07 08:45:28.840 +00:00] [INFO] [stream.go:166] ["started stream writer with remote peer"] [local-member-id=519ab548d31fb894] [remote-peer-id=fb88bf73340dfe6e]
[2020/09/07 08:45:28.840 +00:00] [INFO] [stream.go:166] ["started stream writer with remote peer"] [local-member-id=519ab548d31fb894] [remote-peer-id=fb88bf73340dfe6e]
[2020/09/07 08:45:28.840 +00:00] [INFO] [peer.go:134] ["started remote peer"] [remote-peer-id=fb88bf73340dfe6e]
[2020/09/07 08:45:28.840 +00:00] [INFO] [transport.go:327] ["added remote peer"] [local-member-id=519ab548d31fb894] [remote-peer-id=fb88bf73340dfe6e] [remote-peer-urls="[http://tidb-test-pd-2.tidb-test-pd-peer.default.svc:2380]"]
[2020/09/07 08:45:28.840 +00:00] [INFO] [stream.go:406] ["started stream reader with remote peer"] [stream-reader-type="stream MsgApp v2"] [local-member-id=519ab548d31fb894] [remote-peer-id=fb88bf73340dfe6e]
[2020/09/07 08:45:28.840 +00:00] [INFO] [stream.go:406] ["started stream reader with remote peer"] [stream-reader-type="stream Message"] [local-member-id=519ab548d31fb894] [remote-peer-id=fb88bf73340dfe6e]
[2020/09/07 08:45:28.840 +00:00] [INFO] [server.go:792] ["starting etcd server"] [local-member-id=519ab548d31fb894] [local-server-version=3.4.3] [cluster-version=to_be_decided]
[2020/09/07 08:45:28.840 +00:00] [INFO] [server.go:680] ["starting initial election tick advance"] [election-ticks=6]
[2020/09/07 08:45:28.842 +00:00] [INFO] [etcd.go:241] ["now serving peer/client/metrics"] [local-member-id=519ab548d31fb894] [initial-advertise-peer-urls="[http://tidb-test-pd-0.tidb-test-pd-peer.default.svc:2380]"] [listen-peer-urls="[http://0.0.0.0:2380]"] [advertise-client-urls="[http://tidb-test-pd-0.tidb-test-pd-peer.default.svc:2379]"] [listen-client-urls="[http://0.0.0.0:2379]"] [listen-metrics-urls="[]"]
[2020/09/07 08:45:28.842 +00:00] [INFO] [etcd.go:576] ["serving peer traffic"] [address="[::]:2380"]
[2020/09/07 08:45:28.842 +00:00] [INFO] [stream.go:250] ["set message encoder"] [from=519ab548d31fb894] [to=519ab548d31fb894] [stream-type="stream Message"]
[2020/09/07 08:45:28.842 +00:00] [INFO] [peer_status.go:51] ["peer became active"] [peer-id=23f226bac53923d8]
[2020/09/07 08:45:28.842 +00:00] [INFO] [stream.go:250] ["set message encoder"] [from=519ab548d31fb894] [to=519ab548d31fb894] [stream-type="stream MsgApp v2"]
[2020/09/07 08:45:28.843 +00:00] [INFO] [stream.go:425] ["established TCP streaming connection with remote peer"] [stream-reader-type="stream Message"] [local-member-id=519ab548d31fb894] [remote-peer-id=23f226bac53923d8]
[2020/09/07 08:45:28.843 +00:00] [INFO] [stream.go:425] ["established TCP streaming connection with remote peer"] [stream-reader-type="stream MsgApp v2"] [local-member-id=519ab548d31fb894] [remote-peer-id=23f226bac53923d8]
[2020/09/07 08:45:28.843 +00:00] [WARN] [stream.go:277] ["established TCP streaming connection with remote peer"] [stream-writer-type="stream MsgApp v2"] [local-member-id=519ab548d31fb894] [remote-peer-id=23f226bac53923d8]
[2020/09/07 08:45:28.843 +00:00] [WARN] [stream.go:277] ["established TCP streaming connection with remote peer"] [stream-writer-type="stream Message"] [local-member-id=519ab548d31fb894] [remote-peer-id=23f226bac53923d8]
[2020/09/07 08:45:28.843 +00:00] [INFO] [peer_status.go:51] ["peer became active"] [peer-id=fb88bf73340dfe6e]
[2020/09/07 08:45:28.843 +00:00] [INFO] [stream.go:425] ["established TCP streaming connection with remote peer"] [stream-reader-type="stream Message"] [local-member-id=519ab548d31fb894] [remote-peer-id=fb88bf73340dfe6e]
[2020/09/07 08:45:28.843 +00:00] [INFO] [stream.go:425] ["established TCP streaming connection with remote peer"] [stream-reader-type="stream MsgApp v2"] [local-member-id=519ab548d31fb894] [remote-peer-id=fb88bf73340dfe6e]
[2020/09/07 08:45:28.880 +00:00] [INFO] [raft.go:859] ["519ab548d31fb894 [term: 0] received a MsgHeartbeat message with higher term from 23f226bac53923d8 [term: 2]"]
[2020/09/07 08:45:28.880 +00:00] [INFO] [raft.go:700] ["519ab548d31fb894 became follower at term 2"]
[2020/09/07 08:45:28.880 +00:00] [INFO] [node.go:325] ["raft.node: 519ab548d31fb894 elected leader 23f226bac53923d8 at term 2"]
[2020/09/07 08:45:28.882 +00:00] [INFO] [raft.go:1530] ["519ab548d31fb894 switched to configuration voters=(2590175319306085336)"]
[2020/09/07 08:45:28.882 +00:00] [INFO] [cluster.go:392] ["added member"] [cluster-id=c557a372125cf7ec] [local-member-id=519ab548d31fb894] [added-peer-id=23f226bac53923d8] [added-peer-peer-urls="[http://tidb-test-pd-1.tidb-test-pd-peer.default.svc:2380]"]
[2020/09/07 08:45:28.882 +00:00] [INFO] [cluster.go:558] ["set initial cluster version"] [cluster-id=c557a372125cf7ec] [local-member-id=519ab548d31fb894] [cluster-version=3.4]
[2020/09/07 08:45:28.882 +00:00] [INFO] [capability.go:76] ["enabled capabilities for version"] [cluster-version=3.4]
[2020/09/07 08:45:28.883 +00:00] [INFO] [raft.go:1530] ["519ab548d31fb894 switched to configuration voters=(2590175319306085336 18124947201868037742)"]
[2020/09/07 08:45:28.883 +00:00] [INFO] [cluster.go:392] ["added member"] [cluster-id=c557a372125cf7ec] [local-member-id=519ab548d31fb894] [added-peer-id=fb88bf73340dfe6e] [added-peer-peer-urls="[http://tidb-test-pd-2.tidb-test-pd-peer.default.svc:2380]"]
[2020/09/07 08:45:28.884 +00:00] [INFO] [raft.go:1530] ["519ab548d31fb894 switched to configuration voters=(2590175319306085336 5880211587869948052 18124947201868037742)"]
[2020/09/07 08:45:28.884 +00:00] [INFO] [cluster.go:392] ["added member"] [cluster-id=c557a372125cf7ec] [local-member-id=519ab548d31fb894] [added-peer-id=519ab548d31fb894] [added-peer-peer-urls="[http://tidb-test-pd-0.tidb-test-pd-peer.default.svc:2380]"]
[2020/09/07 08:45:28.885 +00:00] [INFO] [server.go:286] ["create etcd v3 client"] [endpoints="[http://tidb-test-pd-0.tidb-test-pd-peer.default.svc:2379]"] [cert="{\"cacert-path\":\"\",\"cert-path\":\"\",\"key-path\":\"\",\"cert-allowed-cn\":null}"]
[2020/09/07 08:45:28.885 +00:00] [INFO] [server.go:2016] ["published local member to cluster through raft"] [local-member-id=519ab548d31fb894] [local-member-attributes="{Name:tidb-test-pd-0 ClientURLs:[http://tidb-test-pd-0.tidb-test-pd-peer.default.svc:2379]}"] [request-path=/0/members/519ab548d31fb894/attributes] [cluster-id=c557a372125cf7ec] [publish-timeout=11s]
[2020/09/07 08:45:28.886 +00:00] [INFO] [serve.go:139] ["serving client traffic insecurely; this is strongly discouraged!"] [address="[::]:2379"]
[2020/09/07 08:45:28.889 +00:00] [INFO] [server.go:338] ["init cluster id"] [cluster-id=6869664027320823366]
[2020/09/07 08:45:28.891 +00:00] [INFO] [server.go:705] ["initialized peer connections; fast-forwarding election ticks"] [local-member-id=519ab548d31fb894] [forward-ticks=4] [forward-duration=2s] [election-ticks=6] [election-timeout=3s] [active-remote-members=2]
[2020/09/07 08:45:28.894 +00:00] [WARN] [history_buffer.go:138] ["load history index failed"] [error="leveldb: not found"]
[2020/09/07 08:45:28.894 +00:00] [INFO] [history_buffer.go:146] ["start from history index"] [start-index=0]
[2020/09/07 08:45:28.896 +00:00] [INFO] [server.go:1186] ["server enable region storage"]
[2020/09/07 08:45:28.896 +00:00] [INFO] [server.go:1068] ["start watch leader"] [leader="name:\"tidb-test-pd-1\" member_id:2590175319306085336 peer_urls:\"http://tidb-test-pd-1.tidb-test-pd-peer.default.svc:2380\" client_urls:\"http://tidb-test-pd-1.tidb-test-pd-peer.default.svc:2379\" "]
[2020/09/07 08:45:28.900 +00:00] [INFO] [client.go:167] ["server starts to synchronize with leader"] [server=tidb-test-pd-0] [leader=tidb-test-pd-1] [request-index=0]
[2020/09/07 08:45:28.917 +00:00] [INFO] [stream.go:250] ["set message encoder"] [from=519ab548d31fb894] [to=519ab548d31fb894] [stream-type="stream Message"]
[2020/09/07 08:45:28.917 +00:00] [WARN] [stream.go:277] ["established TCP streaming connection with remote peer"] [stream-writer-type="stream Message"] [local-member-id=519ab548d31fb894] [remote-peer-id=fb88bf73340dfe6e]
[2020/09/07 08:45:28.917 +00:00] [INFO] [stream.go:250] ["set message encoder"] [from=519ab548d31fb894] [to=519ab548d31fb894] [stream-type="stream MsgApp v2"]
[2020/09/07 08:45:28.918 +00:00] [WARN] [stream.go:277] ["established TCP streaming connection with remote peer"] [stream-writer-type="stream MsgApp v2"] [local-member-id=519ab548d31fb894] [remote-peer-id=fb88bf73340dfe6e]

这里只显示 pd 主的ip 信息,查看其他两个作用不大,多谢。

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。