Skip to content

compactor: serve urgent and defer compaction lanes - #16391

Draft
npazosmendez wants to merge 3 commits into
njpm/scheduler-lane-metricsfrom
njpm/compaction-lanes
Draft

compactor: serve urgent and defer compaction lanes#16391
npazosmendez wants to merge 3 commits into
njpm/scheduler-lane-metricsfrom
njpm/compaction-lanes

Conversation

@npazosmendez

@npazosmendez npazosmendez commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

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 with compact-urgent and compact-defer in -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

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]. If changelog entry is not needed, please add the changelog-not-needed label to the PR.
  • about-versioning.md updated with experimental features.

@github-actions

github-actions Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

💻 Deploy preview available (Mimir):

@npazosmendez
npazosmendez force-pushed the njpm/compaction-lanes branch 5 times, most recently from 3ca633e to f914dac Compare August 21, 2026 18:34
@npazosmendez
npazosmendez force-pushed the njpm/compaction-lanes branch 4 times, most recently from 3bcf36d to e593068 Compare August 27, 2026 13:46
@npazosmendez npazosmendez changed the title [WIP] compactor scheduler: slow/fast compaction lanes compactor: serve urgent and defer compaction lanes Aug 27, 2026
@npazosmendez
npazosmendez changed the base branch from main to njpm/scheduler-lane-metrics August 27, 2026 13:47
@npazosmendez
npazosmendez force-pushed the njpm/compaction-lanes branch 2 times, most recently from be03b3d to d074793 Compare August 27, 2026 14:25
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
npazosmendez force-pushed the njpm/compaction-lanes branch from d074793 to c48704a Compare August 27, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant