Support active-active EPP load sharing in Helm charts #3431
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.75) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.75 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.075
Real PR Conversation Timeline
1 comments
"Review active on #3431"
general
weight: 0.35
ahg-g
What type of PR is this?
/kind feature
What this PR does / why we need it:
Importing
active-activeforCrossReplicaSyncerwiring from our internal chart to the public one.There is main aspect breaking backwards compatibility, for existing standalone Envoy service deployments with multiple EPP replicas and leader election disabled, or with EPP autoscaling enabled, must remove
router.epp.flags.health-checking: falseor set it to true before upgrading. This is becauseactive-activediscovery requires EPP’s gRPC health service, and Helm rejects configurations that disable it.There are three important consequences that I'd like to get feedback on, imo they're harmless but could use a second pair of eyes:
-
pluginsCustomConfigkeys now override the built-in default-plugins.yaml and payload-agnostic.yaml: before, a custom entry with one of those names was emitted next to the built-in one, which produces a ConfigMap with duplicate keys whose effective value depended on the YAML parser.- Leader election now renders as --ha-enable-leader-election=true instead of the bare flag: This removes the case where the chart passed both the bare flag and =false. The EPP parses it with pflag, so the value it receives does not change.
- replicas>1 with the flag explicitly set to false no longer gets the RBAC permissions: In the case leader election isn't activated the
Role/RoleBindingpermissions are unused.Another important change was to make sure it works with standalone mode and
router.proxy.mode=service: the chart now points Envoy’s ext_proc cluster at a new headless Service that resolves to individual Ready EPP pod IPs. During tests, I realized otherwise Envoy sees one ClusterIP address, so a reused HTTP/2 connection could keep sending requests to one EPP.Finally, we're reducing Envoy’s connection timeout from 86400s to 1s for the new active-active discovery mode. Since when an EPP pod goes away, its IP can stay in Envoy's host list for a few seconds until DNS refresh or the health checks remove it, then, without a short timeout, a new connection to that IP would wait until the 10s ext_proc stream timeout.
Brief abstract of the changes:
The gateway and standalone Helm charts can configure active-active EPP replicas with shared in-flight load through the Alpha Redis syncer. Enabling
router.epp.crossReplica.enableddisables leader election, allows experimental plugins, and supports fixed replicas or HPA with rolling updates.The selected built-in, structured, or raw EPP configuration receives
redis-synceranddataLayer.crossReplicasettings while retaining its scheduling profile. Redis connection and publication timing values are configurable. Authentication references an existing Secret throughpasswordEnv. Conflicting HA settings, existing syncer configuration, and plaintext passwords fail Helm rendering.In standalone
servicemode with active-active EPP (leader election off with more than one replica, cross-replica sync, or autoscaling), Envoy's ext_proc cluster resolves EPP pods through a headless<name>-discoveryService. That mode sets--health-checking=truefor Envoy's gRPC health checks, rejectsrouter.epp.flags.health-checking: false, and uses a 1sconnect_timeout. The existing ClusterIP Service is kept unchanged. Leader-elected and sidecar modes keep their existing Envoy configuration.The chart reference and operations guide describe external Redis 7.4+ provisioning, shared in-flight load, local approximate prefix state, and eventual consistency without an atomic cluster-wide admission quota. Redis must be provisioned separately.
Which issue(s) this PR fixes:
Fixes #3358.
Validation:
make verify-helm-charts, including Kubernetes schema validation and the cross-replica configuration checks for both charts, passes on the current revision. Kind tests with Redis and simulated model servers were run.The umbrella operations guide in
llm-d/llm-dneeds a companion documentation update.Release note _(write
NONEif no user-facing change)_:``
release-note<name>-discoveryThe gateway and standalone Helm charts support opt-in Alpha Redis synchronization of EPP in-flight load with fixed replicas or autoscaling and credentials from an existing Secret. Redis 7.4 or newer must be provisioned separately. Approximate prefix state remains local, and load sharing is eventually consistent without an atomic cluster-wide admission quota. In standalone service mode with active-active EPP, Envoy discovers EPP pods through a new headless
Service, androuter.epp.flags.health-checkingcannot be set tofalse.
``