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

circle-info

Info

The etcdctl binary and certificates/keys are present in the masters nodes, so run all the below commands from any of the master nodes.

  1. 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 |       |
+----------------------------+--------+-------------+-------+
  1. To list the endpoint health status and ETCD leader details:

  1. To list member list:

Last updated