Incident Replay · Resilience
Why DiskPressure Evicted Your Database to Reclaim a Few Gigabytes of Logs
Toggle requests, priorities, limits and the disk layout, and watch who the kubelet evicts; then replay the 3 a.m. page.
DiskPressure eviction in 60 seconds
- DiskPressure eviction is the kubelet saving its node. Below 10% free disk, the kubelet (each node's agent) evicts Pods at once, with no grace period.
- Ranking isn't on your side. Pods over their disk request go first, then lower priority, then the biggest overspend. With neither set, the database loses.
- Fix the host first. Give the kubelet's and container runtime's directories their own volume, as Bottlerocket does, so scratch files can't fill the OS disk.
- Then insure the workload. A disk request and high priority on the database; a disk limit on leakers, so they're evicted for their own overspend.