Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

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 Can I Check The Current Disk Space Consumption By ETCD Database?
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
- How can I check how much disk space is consumed by the ETCD database on the kubernetes cluster node?
Environment
- Platform9 Managed Kubernetes - All Versions
- ETCD
Answer
- The current ETCD Database size can be checked using the command mentioned below.
- The value under the
DB SIZEcolumn indicates the size of the ETCD database for the particular cluster node.
ETCD endpoint status
# ETCDCTL_API=3 /opt/pf9/pf9-kube/bin/etcdctl endpoint status --cluster --write-out=table --endpoints=http://127.0.0.1:2379 --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 | ID | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS |+-----------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+| https://10.128.144.8:4001 | 767cdb8760094d16 | 3.4.18 | 17 MB | true | false | 220 | 25747862 | 25747862 | || https://10.128.145.228:4001 | 9ace043310f70c08 | 3.4.18 | 17 MB | false | false | 220 | 25747862 | 25747862 | || https://10.128.145.23:4001 | af4d27825edb26b4 | 3.4.18 | 17 MB | false | false | 220 | 25747862 | 25747862 | |+-----------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+- The other command mentioned below provides the actual on disk size of the ETCD DB from Operating System Perspective. It can be considered as the way to confirm if the value mentioned under the
DB SIZEcolumn is correct or not.
Command to check ETCD DB size from OS end.
xxxxxxxxxx# du -sch /var/opt/pf9/kube/etcd/data/member/snap/db17M /var/opt/pf9/kube/etcd/data/member/snap/db17M totalAdditional Information
- For additional information please refer Built-in ETCD snapshot.
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
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