Repository navigation
feat(kv-router): advisory select with worker load and busy evaluation - #12
Closed
ishandhanani wants to merge 1 commit into
Closed
ishandhanani wants to merge 1 commit into
ishandhanani wants to merge 1 commit into
Conversation
Extend the selection response with what a disaggregation coordinator needs to run the conditional-disagg policy without a separate load read: - potential_decode_blocks on every response (the scheduler already computes it) and decode_busy, evaluated against the chosen worker's catalog total_kv_blocks at conditional_disagg_decode_busy_threshold. - SelectRequest::advisory selects through LocalScheduler::select_without_admission, the same path the frontend's prefill_worker_busy probe uses: no queue wait, no booking, and the response carries the chosen worker's projected load (active_prefill_tokens, prefill_token_capacity, total_kv_blocks) plus prefill_busy at conditional_disagg_prefill_busy_threshold. Admitted selections are unchanged apart from the two additive response fields. advisory is rejected for bookings. Tests: advisory and admitted responses with thresholds configured; absence of busy flags when thresholds or capacity are unknown; advisory does not book. Signed-off-by: Ishan Dhanani <[email protected]>
ishandhanani
had a problem deploying
to
external_collaborator
September 3, 2026 06:31 — with
GitHub Actions
Failure
This was referenced Sep 3, 2026
Closed
Owner
Author
This branch had an error being deployed
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.
Phase 0 (selection-core parity), item 5. Stacked on #11.
Summary
The Phase 3
DisaggCoordinatorflow is "D query-only select -> P busy read -> conditional-disagg policy". Today the frontend gets the prefill busy signal fromRoutingHost::prefill_worker_busy(lib/llm/src/kv_router/routing_host/kv.rs:232), which is an advisory (select_without_admission) selection followed byAdvisoryWorkerLoad::prefill_load_exceeds, and the decode busy signal fromRoutePlanSignals::decode_load_exceeds(routing_host.rs:295) overpotential_decode_blocksand the worker'stotal_kv_blocks. The selection service exposed neither.SelectResponse.potential_decode_blocks: u64on every response (the scheduler already computes it) anddecode_busy: Option<bool>evaluated against the chosen worker's catalogtotal_kv_blocksatconditional_disagg_decode_busy_threshold(newWorkerCatalog::total_kv_blockslookup; no load read).SelectRequest.advisory: boolroutes throughLocalScheduler::select_without_admission: no queue wait, no booking. The response addsworker_load { active_prefill_tokens, prefill_token_capacity, total_kv_blocks, prefill_busy }withprefill_busyatconditional_disagg_prefill_busy_threshold, matching the frontend'speek_prefill_chosen_worker_busysemantics (unset threshold -> absent).advisoryon a booking is aBadRequest(unreachable over HTTP sinceSelectAndReserveRequesthas no such field; defensive).standalone-selection.md(response fields + "Advisory selection" section).Validation
cargo test -p dynamo-kv-router --features standalone-selection --lib -- services::selection: 73 passed. New:advisory_select_reports_worker_load_and_busy_evaluation(admitted vs advisory, thresholds 0.5/0.0, capacity 1000, verifies no booking side effect) andbusy_evaluation_is_absent_without_thresholds_or_capacity.cargo clippy --features standalone-selection --all-targets: only the pre-existingregistry.rsdead-code warning.cargo fmtclean.docs_lint.pyclean.