-
Notifications
You must be signed in to change notification settings - Fork 188
master: add etcd compaction and quota config #1521
Conversation
I tested setting and not setting auto comapction configurations, with writing different value to a same key. The DBSize of endpoint status has no difference most time, while for one configuration old revision key is compacted and other is not. Will check DBSize of endpoint status in integration test later. |
according to above link, auto compaction does no help to disk problems, and defregment will stop etcd serving thus need carefully trigger, we might let user configurate a big quota to reduce the chance, and write an FAQ on etcd defregment or provide a helper command -- update: we might implement rolling defregment in future |
/run-all-tests |
cd6cbab
to
412def1
Compare
412def1
to
1efba84
Compare
/lgtm |
I think adding this and lacking defragment didn't make things worse. defragment will stop etcd's serving, thus we should let master retire leader to run a defragment. I'm not clear about the logic now |
Users can't achieve their goals if they don't do defragment manually. They may think auto-compaction can avoid |
we could tell them auto-compaction features are the same behaviour with etcd/pd, so their expectation is wrong. |
OK. We should add this to our documents. I'm curious about how pd handles this problem? I mean how to tell users to use defragment. I check their code there is no periodically defragment, either. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may no need to config `auto-compaction-retention in so many integration tests. I think most users will not manually config it.
rest LGTM
now we set the efault value to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by writing |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 40b63e8
|
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-2.0 in PR #1534 |
What problem does this PR solve?
part of #1519
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes