Skip to content

Defragmentation Best Practices #17110

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

You must be logged in to vote

Hey @ugur99 - Thanks for your question. It is best to perform defragmentation on a per member basis, leaving the current cluster leader to last. This should result in the least potential disruption to the cluster.

When an individual member is performing defragmentation it will be blocked and unable to perform normal duties until the defrag completes. For this reason it is best to defrag only when genuinely necessary. An etcd maintainer has created https://github.com/ahrtr/etcd-defrag#defragmentation-rule to assist with this by only running defrag when specific thresholds have been reached.

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