How to Check ETCD Cluster Health?
Problem
How to find ETCD leader and check ETCD cluster health.
Environment
Self-Hosted Private Cloud Director - All Versions.
Procedure
To list the endpoint health:
$ /opt/pf9/pf9-kube/bin/etcdctl \
--endpoints=https://<Master1_IP>:4001,https://<Master2_IP>:4001,https://<Master3_IP>:4001 \
--cacert=/etc/pf9/kube.d/certs/etcdctl/etcd/ca.crt \
--cert=/etc/pf9/kube.d/certs/etcdctl/etcd/request.crt \
--key=/etc/pf9/kube.d/certs/etcdctl/etcd/request.key \
endpoint health -w=table
+----------------------------+--------+-------------+-------+
| ENDPOINT | HEALTH | TOOK | ERROR |
+----------------------------+--------+-------------+-------+
| https://<Master1_IP>:4001 | true | 10.833037ms | |
| https://<Master2_IP>:4001 | true | 10.999511ms | |
| https://<Master3_IP>:4001 | true | 11.424566ms | |
+----------------------------+--------+-------------+-------+To list the endpoint health status and ETCD leader details:
To list member list:
PreviousPCD Deployment Fails with Error Etcd Leader Changed
NextSearch Domain Resolution Failure by Public Nameservers in Onprem Setup
Last updated
