Conversation
mapno
force-pushed
the
slot-based-job-scheduling
branch
from
September 14, 2026 16:41
9428e91 to
18c36bc
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:
Query latency is driven by the slowest job, and today's batch protocol adds another barrier: completed jobs are not returned until every job in the batch finishes. This proposal makes the job scheduling unit while retaining coalesced transport.
Jobs become the scheduling unit, consuming individual slot in queriers. However, for efficiency, jobs are still transported in batched called frames.
Each querier has a configured number of execution slots, with completed jobs returning results and freeing their slots for new work without waiting for the slowest job in their original batch. This reduces idle capacity and prevent a slow job from delaying completed results from other queries. Capacity and dispatch remain explicit and easy to monitor; running stragglers stay assigned, so the improvement comes from reusing freed slots while work is still queued.
Checklist
.chloggen/(runmake chlog-new, ormake chlog-new FILENAME=<name>to override the default branch-name file; see.chloggen/README.md)