Skip to content
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

release/v2.2007 - fix(compaction): Use separate compactors for L0, L1 (#1466) #1468

Merged
merged 1 commit into from
Aug 25, 2020

Conversation

jarifibrahim
Copy link
Contributor

@jarifibrahim jarifibrahim commented Aug 20, 2020

Related to #1459

This PR contains the following changes to compactions

  • Use a separate thread for compacting Level 0 and 1 and a separate one for other levels
  • Pick levels to compact based on score.
  • Stall Level 0 if compactions cannot keep up (we had added this in Do not stall Level 0 and 1 #1186)
  • Limit the number of open table builders to 5 in compactions.

(cherry picked from commit 0b8eb4c)


This change is Reviewable

Related to #1459

This PR contains the following changes to compactions
- Use a separate thread for compacting Level 0 and 1 and a separate one for other levels
- Pick levels to compact based on score.
- Stall Level 0 if compactions cannot keep up (we had added this in #1186)
- Limit the number of open table builders to 5 in compactions.

(cherry picked from commit 0b8eb4c)
@jarifibrahim jarifibrahim added the cherry-pick Cherry pick pull requests label Aug 20, 2020
@jarifibrahim jarifibrahim merged commit 6d05358 into release/v2.2007 Aug 25, 2020
@jarifibrahim jarifibrahim deleted the ibrahim/r2007-compaction branch August 25, 2020 14:35
mYmNeo added a commit to mYmNeo/badger that referenced this pull request Jan 16, 2023
…1468)

Signed-off-by: thomassong <thomassong2012@gmail.com>
mYmNeo added a commit to mYmNeo/badger that referenced this pull request Feb 13, 2023
…1468)

Signed-off-by: thomassong <thomassong2012@gmail.com>
mYmNeo added a commit to mYmNeo/badger that referenced this pull request Sep 14, 2024
…1468)

Signed-off-by: thomassong <thomassong2012@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick Cherry pick pull requests
Development

Successfully merging this pull request may close these issues.

2 participants