Skip to content
How etcd Compaction Causes Kubernetes API Latency episode artwork

Jul 30, 2026 6 min

How etcd Compaction Causes Kubernetes API Latency

from DevOps Daily with Fexingo: CI/CD, Kubernetes, and Modern Software Operations Hosted by Fexingo

etcd compaction is a routine maintenance operation that removes historical key-value versions, but when it runs, it can consume significant IO and CPU, leading to increased latency for API server requests. This episode dives into the mechanics: compaction triggers defragmentation of boltdb pages, causing pauses that can spike request latency from milliseconds to seconds. We discuss a real-world incident where a 500-node cluster saw API latency jump to 8 seconds during peak hours due to compaction misconfiguration. Then we cover mitigation strategies: tuning auto-compaction retention, scheduling defrag during low traffic, monitoring etcd metrics, and setting alerts for compaction duration. Understanding this often-overlooked performance pitfall is crucial for maintaining responsive clusters at scale. #Kubernetes #etcd #APIServer #Latency #Compaction #Defragmentation #Performance #Tuning #SRE #DevOps #Infrastructure #CloudNative #FexingoBusiness #BusinessPodcast #Technology #Operations #Cluster #Scalability Keep every episode free: buymeacoffee.com/fexingo

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

How etcd Compaction Causes Kubernetes API Latency

0:00 6:59

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of DevOps Daily with Fexingo: CI/CD, Kubernetes, and Modern Software Operations?

This episode is 6 minutes long.

When was this DevOps Daily with Fexingo: CI/CD, Kubernetes, and Modern Software Operations episode published?

This episode was published on July 30, 2026.

Can I download this DevOps Daily with Fexingo: CI/CD, Kubernetes, and Modern Software Operations episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.