[Question] [Defrag and Compaction] - If Defrag and Compaction are "stop the world" operation #17312
-
hello, I am a novice in etcd, I want to know if the etcd's compact and defrag is like the java's gc which could cause the "stop the world" scenario, "stop the world" means when compact or defrag occurs, the etcd could not provided server(such as put del get ... ) for a while? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
According to my knowledge.
Compaction is not a "stop the world" operation. But still should be used only after understanding the impact of compaction.
Defragmentation is a "stop the world" operation. As quoted from documentation
All these answers are only true for v3.5, for older versions you might find the answer in the source below |
Beta Was this translation helpful? Give feedback.
-
thank you for all for your reply. I finally find in etcd official doc, https://etcd.io/blog/2023/how_to_debug_large_db_size_issue/#compaction--defragmentation,there is some useful information in below:
|
Beta Was this translation helpful? Give feedback.
According to my knowledge.
Compaction is not a "stop the world" operation. But still should be used only after understanding the impact of compaction.
Defragmentation is a "stop the world" operation.
As quoted from documentation
All these answers are only true for v3.5, for older versions you might find the answer…