Knowledge Base
2025.10
GENERIC
Networking
Storage
Compute
Designate
Orchestration
Self-Hosted
Install
UPGRADE
Monitoring
Add-Ons
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
How to Check ETCD Cluster Health?
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
How to find ETCD leader and check ETCD cluster health.
Environment
- Self-Hosted Private Cloud Director - All Versions.
Procedure
The etcdctl binary and certificates/keys are present in the masters nodes, so run all the below commands from any of the master nodes.
- To list the endpoint health:
Command
βx
$ /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:
Command
$ /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 status -w=tableβ+---------------------------+--------------+---------+---------+-----------+------------+-----------+------------+-----------------------------+| ENDPOINT | ID | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS |+---------------------------+--------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+| https://[Master1_IP]:4001 | [Member1_ID] | 3.4.14 | 168 MB | false | false | 1124 | 238839485 | 238839485 | || https://[Master2_IP]:4001 | [Member2_ID] | 3.4.14 | 168 MB | true | false | 1124 | 238839495 | 238839495 | || https://[Master3_IP]:4001 | [Member3_ID] | 3.4.14 | 168 MB | false | false | 1124 | 238839495 | 238839575 | |+---------------------------+--------------+---------+---------+-----------+------------+-----------+------------+-----------------------------+- To list member list:
Command
$ /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 \member list -w=tableβ+--------------+---------+----------------+---------------------------+---------------------------+------------+| ID | STATUS | NAME | PEER ADDRS | CLIENT ADDRS | IS LEARNER |+--------------+---------+----------------+---------------------------+---------------------------+------------+| [Member1_ID] | started | [Master1-UUID] | https://[Master1_IP]:4001 | https://[Master1_IP]:4001 | false || [Member2_ID] | started | [Master1-UUID] | https://[Master2_IP]:4001 | https://[Master2_IP]:4001 | false || [Member3_ID] | started | [Master1-UUID] | https://[Master3_IP]:4001 | https://[Master3_IP]:4001 | false |+--------------+---------+----------------+---------------------------+---------------------------+------------+Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message