Interview Prep/Kubernetes/Upgrades, Backup & Disaster Recovery

How do you plan for etcd growth and defragmentation?

IntermediateProductionUpgrades, Backup & Disaster Recovery
Answer

Watch etcd_mvcc_db_total_size_in_bytes against the quota (2 GiB default; raise up to 8 GiB), enable auto-compaction, and defragment members one at a time (defrag blocks the member) when fragmentation is high. If you hit "mvcc: database space exceeded", the cluster goes read-only until you compact, defrag and disarm the alarm.

etcdctl endpoint status -w table
etcdctl defrag --endpoints=https://10.0.1.10:2379
etcdctl alarm disarm
All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Upgrades, Backup & Disaster Recovery