compactor: serve urgent and defer compaction lanes - #16391
Draft
npazosmendez wants to merge 3 commits into
Draft
Conversation
Contributor
|
💻 Deploy preview available (Mimir): |
npazosmendez
force-pushed
the
njpm/compaction-lanes
branch
5 times, most recently
from
August 21, 2026 18:34
3ca633e to
f914dac
Compare
npazosmendez
force-pushed
the
njpm/compaction-lanes
branch
4 times, most recently
from
August 27, 2026 13:46
3bcf36d to
e593068
Compare
npazosmendez
force-pushed
the
njpm/compaction-lanes
branch
2 times, most recently
from
August 27, 2026 14:25
be03b3d to
d074793
Compare
Small jobs that keep up with new blocks and big periodic jobs now queue separately, so each can get its own worker fleet. Opt in with -compactor-scheduler.lane-policy.policy=urgency.
npazosmendez
force-pushed
the
njpm/compaction-lanes
branch
from
August 27, 2026 17:54
d074793 to
c48704a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Adds an opt-in lane policy that queues compaction jobs in two lanes. A job is urgent when its blocks span up to
-compactor-scheduler.lane-policy.urgency.max-span(2h by default), or when it is out of order. Everything else goes to the defer lane. Workers pick a lane withcompact-urgentandcompact-deferin-compactor.scheduler-client.lanes, so each lane can have its own fleet.The default policy is still
simple, with a single compaction lane.Stacked on #16489. Review that one first.
Which issue(s) this PR fixes or relates to
Fixes N/A
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]. If changelog entry is not needed, please add thechangelog-not-neededlabel to the PR.about-versioning.mdupdated with experimental features.