standalone: route fail-open traffic to model servers when EPP is unreachable #3433
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 639 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.387
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3433"
general
weight: 0.35
ahg-g
What type of PR is this?
/kind bug
What this PR does / why we need it:
With
router.proxy.failOpen: true, the standalone Envoy proxy skips ext_proc when EPP is unreachable. The only route goes tooriginal_destination_cluster, which needs thex-gateway-destination-endpointheader that EPP sets. With EPP down, nothing sets it, so these requests never reach a model server and fail-open does not work in standalone mode (documented in #3427).This PR adds a fallback route, rendered only for the standalone chart with Envoy and
failOpen: true(the default):original_destination_clusternow matches only whenx-gateway-destination-endpointis present. A second catch-all route sends everything else to a newinference_pool_fallbackcluster. EPP already setsClearRouteCache: truewith its header mutation, so requests it schedules re-match to the first route. No EPP change is needed.inference_pool_fallbackis aSTRICT_DNS/LEAST_REQUESTcluster. It resolves a new headless Service,<release>-epp-model-servers, which selectsrouter.modelServers.matchLabelson the firstrouter.modelServers.targetPortsentry. A headless Service publishes only ready pods.early_header_mutation_extensionsentry removes any client-suppliedx-gateway-destination-endpointbefore route selection, so only EPP picks the endpoint. This is rendered in every Envoy config, fallback or not. It uses early mutation rather than theheader_mutationHTTP filter so the route cache is not computed from the client's header.x-llm-d-prefiller-host-port,x-llm-d-encoder-hosts-ports,x-data-parallel-host-port,x-llm-d-kv-cache-source-host-portand their legacy aliases) andx-llm-d-pin-host-port, which EPP removes on the scheduled route. They are removed on the route, after ext_proc, because EPP screeners readx-llm-d-pin-host-port.docs/operations.mdandconfig/charts/README.mdnow describe the fallback. They also correct the documentedfailOpendefault: the standalonevalues.yamlsetstruefor both modes, notfalsefor sidecar.Behavior with
failOpen: false, with Agentgateway, and in the gateway chart is unchanged, except that the header strip applies to every Envoy config.Follow-ups / decisions for reviewers:
targetPortsentry is used. Data-parallel deployments with several ports get fallback traffic on rank 0's port only.cluster.inference_pool_fallback.*stats.failOpendefaults totruethere. It only helps if the EPP container is down while the Envoy container is still up.router.modelServers.matchLabels. In P/D deployments that also matches prefill pods, so some fallback requests go straight to prefill servers. vLLMkv_bothprefill pods serve them; SGLang prefill servers in disaggregation mode likely reject requests without bootstrap fields.FailOpen.Which issue(s) this PR fixes:
Fixes #3432
Release note _(write
NONEif no user-facing change)_:``
release-note
`llm-d-router-standalone: with router.proxy.failOpen=true (default) and the Envoy proxy, requests are now load-balanced across the model servers through a new headless Service (<release>-epp-model-servers) when EPP is unreachable. Previously they could not be routed. Envoy now also removes client-supplied x-gateway-destination-endpoint headers, and fallback requests have client-supplied internal routing headers removed.
Testing
passes. New assertions inhack/verify-helm.shcover:- service mode renders the fallback route, the header-gated route, the cluster FQDN, the headless Service and the header strip;
- failOpen=false
renders no fallback but keeps the strip;targetPorts- a custom
value is used;
envoy --mode validate- Agentgateway renders no fallback Service.
(envoy v1.33.2, the chart's image) passes on rendered configs for service, sidecar,failOpen=falseand priority routing.
Local end-to-end run with the rendered service-mode config in Envoy v1.33.2. Two fake model servers ( pool-fallbackstands in for the headless Service,epp-pickedis the endpoint the fake EPP picks), plus a fake ext_proc server that sets the destination header withClearRouteCache:main| Scenario | Request |
| This PR |no healthy upstream|---|---|---|---|
| EPP unreachable | GET / POST | 503
| 200 frompool-fallback|pool-fallback| EPP unreachable | client sets destination header | — | 200 from
, header removed |epp-picked| EPP up | GET / POST | — | 200 from
|epp-picked`; EPP never sees the client header || EPP up | client sets destination header | — | 200 from