-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check perf is increasing the db size drastically #9326
Comments
You can just ignore node03 as the machine is taken off and we are replacing it. |
Probably due to freelist sync in bolt db #8009? |
@gyuho thanks, I looked at that earlier but couldn't relate to what I'm doing to what was described in those related issues. What is the suggested workaround to bring the db size back to normal? |
All etcds before 3.3 sync freelists on disk. We disabled freelist sync in 3.3. Upgrading to 3.3 should resolve this issue. Could you try the same test with 3.3? Thanks! |
Doesn't seem like they are related, but I'll give it a try |
@xiang90 @gyuho I can replicate with 3.3.1 too
|
it should not be related. defrag should be able to reduce the size if the keys are all deleted and compacted after the test. |
@xiang90 thanks. Is the user expected to delete the keys manually? Shouldn't the test do it at the end. What is the path to be deleted from? |
@xiang90 I see from the code that /etcdctl-check-perf/ is the prefix. I'll update. |
@raoofm We delete all written keys when |
then why is the db size not coming down. It remains at 44mb instead of 25kb |
@raoofm Oh, just found out we do not compact... Will fix. Thanks for reporting. |
@gyuho thanks. Is there a recommended way to get the last compacted revision and the current revision? Is there a document to read to automate compaction and set the revision? |
How do we usually choose compaction revision? |
@gyuho gentle ping |
before perf check
1st perf check
after 1st perf check
2nd perf check
after 2nd perf check
@xiang90 Please help me understand, is it something I'm doing wrong. I ran defrag but as I expected this didn't fix this. Should I run compaction. Not really sure, why the db should increase by 22mb.
How to reduce it back?
The text was updated successfully, but these errors were encountered: