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
More on Upgrades, Backup & Disaster Recovery
What is your cluster upgrade cadence and why?BeginnerWhat do you check before upgrading a cluster?BeginnerWhat is Velero and what does it back up?BeginnerWhich things are NOT recoverable by just restoring etcd or manifests?BeginnerWhat are RPO and RTO and how do they drive Kubernetes DR design?BeginnerWhat does a production-grade etcd backup strategy look like (frequency, off-cluster storage, restore drills)?Beginner