Skip to content

[Question] [Defrag and Compaction] - Fundamental Understanding Question #17310

Closed Answered by jmhbnz
vivekpatani asked this question in Q&A
Discussion options

You must be logged in to vote

Does that mean the tombstoned keys will continue to occupy space until defragged?

Short answer yes.

Compacting old revisions internally fragments etcd by leaving gaps in backend database. Fragmented space is available for use by etcd but unavailable to the host filesystem. In other words, deleting application data does not reclaim the space on disk.

If you use etcd with a space quota (which you should) then over time fragmentation will mean etcd will run out of storage space.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vivekpatani
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants