Skip to content

feat(epp): decode-first disaggregated coordination in the standalone EPP - #26

Closed
ishandhanani wants to merge 1 commit into
idhanani/p4-static-frontendfrom
idhanani/p3-epp-disagg
Closed

ishandhanani wants to merge 1 commit into
idhanani/p4-static-frontendfrom
idhanani/p3-epp-disagg

Conversation

@ishandhanani

Copy link
Copy Markdown
Owner

Stacked on the static-frontend PR. Roadmap Phase 3: EPP standalone hosting DisaggCoordinator.

Summary

  • DYN_EPP_PREFILL_INFERENCE_POOL_NAME names a second InferencePool of prefill workers; DYN_EPP_INFERENCE_POOL_NAME becomes the decode pool. Each pool gets its own PodDiscovery (spawn_for_pool), TopologyAdapter, and Selector (Selector::new_for_pool with WorkerType::Prefill / WorkerType::Decode; peer replication stays on the decode pool; linked policies resolve against the decode pool).
  • EppRouter::pick plans through DisaggCoordinator (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 with x-dynamo-worker-instance-id, x-dynamo-dp-rank, x-dynamo-routing-mode (disaggregated / aggregated on bypass), x-dynamo-prefill-instance-id, x-dynamo-prefill-dp-rank — the same header contract DYN_EPP_MODE=dynamo uses — and holds the DisaggPlan under 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) or bypass-on-decode. Readiness requires both pool reflectors. The Envoy subset hint is ignored in this mode (logged).
  • Docs: vanilla-vllm-onramp.mdx env table, standalone-selection.md coordinator hosting.

Validation

  • New test coordinator_links_prefill_and_decode_pools_and_headers_name_both: two in-process selectors (no Kubernetes) linked by the coordinator; plan is Linked, headers name decode worker 1 and prefill worker 2, prefill_complete -> PrefillReleased, release -> Released, and both <id>/decode and <id>/prefill bookings 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 existing DYN_EPP_MODE=dynamo contract.

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

Copy link
Copy Markdown
Owner Author

Closed while Stack 1 (#45 to #53) and Stack 2 (#40) go upstream; the branch stays for later stacks (direct dispatch, catalog leases, runtime features). See #33.

This branch had an error being deployed

1 failed deployment
external_collaborator — 7c59da65 Deployed Sep 3, 2026 by ishandhanani via ok-to-test #47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation feat

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant