Skip to content

Disk space usage without fragmentation #18305

Answered by ahrtr
andmat900 asked this question in Q&A
Discussion options

You must be logged in to vote

will it's space be used to write the next key before allocating new disk space?

Yes, the freed pages can be reused. It will allocate more disk space if the existing free pages can't meet the allocation request. But please also note that bbolt (storage engine used by etcd) requires continuous pages each time when it tries to allocates pages.

Without defragmentation, is there a risk that etcd will gradually eat up disk space even if the actual data size is much smaller than the partition size?

It's possible, but low.

Replies: 1 comment

Comment options

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