-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Pick files from the last sorted run in size amp compaction picker #11740
Conversation
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, thanks!
@hx235 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
// base file (overrides configured values of file-size ratios, | ||
// min_merge_width and max_merge_width). | ||
// | ||
// exceeeds the configured value, then do a compaction |
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.
nit: exceeds : )
@hx235 has updated the pull request. You must reimport the pull request before landing. |
ed2867c
to
54108a3
Compare
@hx235 has updated the pull request. You must reimport the pull request before landing. |
@hx235 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Context/Summary:
Same intention as #2693 - basically we now pick from the last sorted run and expand forward till we can't
Test:
Existing UT
Stress test
python3 tools/db_crashtest.py --simple blackbox --compaction_style=1
for an hour