Repository navigation
feat(epp): decode-first disaggregated coordination in the standalone EPP - #26
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 standalone EPP hosts `DisaggCoordinator` over two in-process selection services when `DYN_EPP_PREFILL_INFERENCE_POOL_NAME` names a second `InferencePool`: `DYN_EPP_INFERENCE_POOL_NAME` is the decode pool, the new pool supplies prefill workers. Each pool gets its own `PodDiscovery` (`spawn_for_pool`), `TopologyAdapter`, and `Selector` (`new_for_pool`, with the prefill or decode worker type; peer replication stays on the decode pool). `pick` plans through the coordinator (decode booked first, prefill constrained to the decode worker's KV-transfer domain, conditional-disagg policy honored), forwards the decode endpoint with the `x-dynamo-worker-instance-id`, `x-dynamo-dp-rank`, `x-dynamo-routing-mode`, `x-dynamo-prefill-instance-id`, and `x-dynamo-prefill-dp-rank` headers, and holds the plan under the EPP-minted booking id. First token marks prefill complete on the plan; response end releases both bookings. A plan whose workers no longer resolve is released before routing. `DYN_EPP_DISAGG_PREFILL_FAILURE` selects the compensation for "decode booked, prefill failed": `free-decode` (default) or `bypass-on-decode`. Readiness requires both pool reflectors. The Envoy subset hint is not applied in this mode. Test: two in-process selectors linked by the coordinator produce a `Linked` plan naming both workers in the headers and release both bookings. Signed-off-by: Ishan Dhanani <[email protected]>
ishandhanani
had a problem deploying
to
external_collaborator
September 3, 2026 10:30 — with
GitHub Actions
Failure
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 the static-frontend PR. Roadmap Phase 3: EPP standalone hosting
DisaggCoordinator.Summary
DYN_EPP_PREFILL_INFERENCE_POOL_NAMEnames a secondInferencePoolof prefill workers;DYN_EPP_INFERENCE_POOL_NAMEbecomes the decode pool. Each pool gets its ownPodDiscovery(spawn_for_pool),TopologyAdapter, andSelector(Selector::new_for_poolwithWorkerType::Prefill/WorkerType::Decode; peer replication stays on the decode pool; linked policies resolve against the decode pool).EppRouter::pickplans throughDisaggCoordinator(decode booked first, prefill constrained to the decode worker's KV-transfer domain, conditional-disagg policy from the router env honored), forwards the decode endpoint withx-dynamo-worker-instance-id,x-dynamo-dp-rank,x-dynamo-routing-mode(disaggregated/aggregatedon bypass),x-dynamo-prefill-instance-id,x-dynamo-prefill-dp-rank— the same header contractDYN_EPP_MODE=dynamouses — and holds theDisaggPlanunder the EPP-minted booking id. First token ->coordinator.prefill_complete; response end ->coordinator.release(both bookings). A plan whose workers no longer resolve in either reflector is released before routing.DYN_EPP_DISAGG_PREFILL_FAILURE:free-decode(default) orbypass-on-decode. Readiness requires both pool reflectors. The Envoy subset hint is ignored in this mode (logged).vanilla-vllm-onramp.mdxenv table,standalone-selection.mdcoordinator hosting.Validation
coordinator_links_prefill_and_decode_pools_and_headers_name_both: two in-process selectors (no Kubernetes) linked by the coordinator; plan isLinked, headers name decode worker 1 and prefill worker 2,prefill_complete->PrefillReleased,release->Released, and both<id>/decodeand<id>/prefillbookings are gone afterwards.cargo test -p dynamo-ext-proc --lib: 145 passed.cargo clippy --workspace --all-targets: clean.docs_lint.py: 0 errors.Not validated against a live Kubernetes cluster with two
InferencePools; the sidecar-side consumption of the prefill headers is the existingDYN_EPP_MODE=dynamocontract.