Skip to content

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

Merged
jarifibrahim merged 1 commit intorelease/v2.2007from
ibrahim/r2007-compaction
Aug 25, 2020
Merged

release/v2.2007 - fix(compaction): Use separate compactors for L0, L1 (#1466)#1468
jarifibrahim merged 1 commit intorelease/v2.2007from
ibrahim/r2007-compaction

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
Signed-off-by: thomassong <thomassong2012@gmail.com>
mYmNeo added a commit to mYmNeo/badger that referenced this pull request Feb 13, 2023
Signed-off-by: thomassong <thomassong2012@gmail.com>
mYmNeo added a commit to mYmNeo/badger that referenced this pull request Sep 14, 2024
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