An entire Kubernetes cluster of hundreds of servers and thousands of pods depends on a database with a default 2 GiB quota. Even in large production clusters, the etcd hardware guide advises against growing it past 8 GiB. It also needs a disk that finishes 99% of synchronous writes under 10 ms. If storage slows down past that, the cluster starts losing its leader or flips to read-only mode.
Running containers on worker nodes keep serving traffic for a while, yet the entire control plane (kube-apiserver, scheduler, and controllers) freezes. You can't roll out deploys or reschedule crashed pods. Let's look inside etcd to see where it breaks.
How Raft guards the 'truth' and why it needs a quorum
etcd is a distributed key-value store built on bbolt (a BoltDB fork) that holds pods, secrets, configs, and controller leases. To keep state consistent when a node goes down, the cluster runs the Raft consensus algorithm.
You always run an odd number of nodes—usually three or five. One node becomes the leader and handles all writes. First, the leader flushes the write to its Write-Ahead Log (WAL) with fsync (forcing data from the OS cache to disk) and sends it to followers. The client only gets a success reply once a quorum—a majority of nodes (2 of 3, or 3 of 5)—has saved the entry to disk.
This prevents split-brain, where a network partition leaves two halves accepting conflicting writes. In Raft, the minority immediately blocks writes so two competing "truths" never appear. Yet as soon as disk or network latency spikes, Raft's strict timing rules turn against the cluster.
Three places where the cluster starts crumbling
Take a standard three-node etcd cluster under Kubernetes. Failures usually hit three spots: disk latency, network timing, and the database quota.
First trap: slow wal_fsync. The leader sends heartbeats to followers: by default, --heartbeat-interval is 100 ms and --election-timeout is 1000 ms (at least a 1:10 ratio to cover real network RTT). If fsync crosses 10 ms at the 99th percentile, the leader misses heartbeats. Followers assume it's dead and trigger an election. On a busy disk or flaky network, this spirals into an endless election storm while kube-apiserver floods with timeouts.
Running etcd data on slow network storage or sharing a disk with worker pods invites leader elections under load. One noisy neighbor writing logs or a backup can easily push wal_fsync past 10 ms and take down the control plane.
Second trap: the NOSPACE alarm. etcd uses MVCC internally, keeping older key versions inside bbolt so space fills up over time. Once it hits --quota-backend-bytes (2 GiB by default), the cluster raises a NOSPACE alarm and locks into read-only mode.
Third trap: mixing up compaction and defragmentation from the etcd maintenance guide. Running compact only frees old revisions logically inside bbolt; the file on disk doesn't shrink. Only defrag hands space back to the OS, after which you clear the alarm with alarm disarm. Because defrag blocks writes on the node being compacted, you must run it strictly one node at a time.
Four hygiene habits to sleep soundly
Four rules are enough to keep etcd steady under peak load.
First, put WAL and data on fast local SSDs or NVMe drives isolated from other node workloads. Second, set Prometheus alerts on three metrics: 99th-percentile etcd_disk_wal_fsync_duration_seconds (keep under 10 ms), database size etcd_mvcc_db_total_size_in_bytes, and etcd_server_leader_changes_seen_total. Seeing leader elections during a normal day means your disk or network is already on the edge.
Third, enable auto-compaction with --auto-compaction-retention and schedule rolling defragmentation. On large clusters, raise --quota-backend-bytes, staying at or below the recommended 8 GiB cap.
Fourth, take regular snapshots. If you lose quorum or corrupt a WAL, a fresh backup following the etcd recovery guide saves the day: ETCDCTL_API=3 etcdctl snapshot save snapshot.db. Always target a single specific endpoint rather than the whole cluster list, and test etcdutl snapshot restore in staging so you know your backup actually boots.


