Repository navigation
refactor(router): delete the runtime-bound KV router scheduler - #31
Closed
ishandhanani wants to merge 1 commit into
Closed
ishandhanani wants to merge 1 commit into
ishandhanani wants to merge 1 commit into
Conversation
The frontend router now always schedules on an embedded selection-service partition. Remove `KvScheduler` (kv_router/scheduler.rs keeps only its runtime-free re-exports), the runtime sequence publisher and its constructors, the direct-ZMQ active-sequence ingress, the two-variant `RouterScheduler` dispatch, and the LoRA load estimator's uncalled scheduler polling. `KvRouter<Sel>` keeps its type parameter for API compatibility (`PhantomData<fn() -> Sel>`). A caller-injected `WorkerSelector<ModelRuntimeConfig>` that is neither the default selector nor a registry `WorkerSelectionPolicy` now runs inside the partition: `WorkerSelectionPolicy::delegated` (new `DelegatedWorkerSelector` trait in dynamo-kv-router) hands the selector the scheduling request and a config-erased view of the eligible workers (`ErasedWorkerConfig`), which the embedded host projects back onto `ModelRuntimeConfig`. The unit tests that inject fake selectors run unchanged on that path. The per-worker `router_worker_registered` gauge is now maintained by the embedded catalog feeder. `router_embedded_selection` is deprecated and ignored; `false` logs a warning. Four sequence-level tests that built the runtime sequences directly are removed; their behavior is covered by the replica-lifecycle and session-affinity e2e tests on the embedded path. Signed-off-by: Ishan Dhanani <[email protected]>
ishandhanani
had a problem deploying
to
external_collaborator
September 3, 2026 15:03 — with
GitHub Actions
Failure
Owner
Author
|
Router e2e on this head (extension rebuilt from 71cea67): |
This was referenced Sep 3, 2026
Owner
Author
|
DEP for this stack: #33. |
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.
Stacked on #30. Phase 1 exit: "then delete the old wiring".
Summary
KvScheduler, the runtime sequence publisher/constructors, the direct-ZMQ active-sequence ingress, theRouterSchedulertwo-variant dispatch, and the LoRA estimator's uncalled scheduler polling are removed (about 2,100 lines).kv_router/scheduler.rskeeps only runtime-free re-exports;KvRouter<Sel>keeps its type parameter for API compatibility.WorkerSelectortypes (anything but the default selector or a registryWorkerSelectionPolicy) now run inside the partition throughWorkerSelectionPolicy::delegated/ the newDelegatedWorkerSelectortrait andErasedWorkerConfig(config-erased worker view, projected back ontoModelRuntimeConfigby the embedded host). The existing unit tests with fake selectors pass unchanged.router_worker_registeredis maintained by the embedded catalog feeder.router_embedded_selectionis deprecated and ignored (falsewarns). Docs,.pyi, and the frontend flag help updated.Validation
cargo test -p dynamo-llm --lib: 2557 passed (allkv_router::,routing_host,prefill_routertests, including the fake-selector tests now running through the delegated policy).cargo test -p dynamo-kv-router --features standalone-selection --lib -- services: passes.cargo clippy -p dynamo-llm -p dynamo-kv-router --all-targets: clean.cargo check --workspace --all-targetsand bindingscargo check: clean.docs_lint.py: 0 errors.