← Back to Pull requests

Support active-active EPP load sharing in Helm charts #3431

Closed
unknown closed this pull request without merging on Oct 14, 2026 23:31 UTC
View on GitHub
unknown unknown commented on Oct 14, 2026 16:42 UTC
Author

What type of PR is this?

/kind feature

What this PR does / why we need it:

Importing active-active for CrossReplicaSyncer wiring 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: false or set it to true before upgrading. This is because active-active discovery 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:

- pluginsCustomConfig keys 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/RoleBinding permissions 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.enabled disables 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-syncer and dataLayer.crossReplica settings while retaining its scheduling profile. Redis connection and publication timing values are configurable. Authentication references an existing Secret through passwordEnv. Conflicting HA settings, existing syncer configuration, and plaintext passwords fail Helm rendering.

In standalone service mode 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>-discovery Service. That mode sets --health-checking=true for Envoy's gRPC health checks, rejects router.epp.flags.health-checking: false, and uses a 1s connect_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.

  • Verify fixed replicas and HPA, HA flags, Secret references, and lease RBAC.

  • Verify built-in, structured, and raw configurations preserve scheduling profiles and receive the selected Redis settings.

  • Verify conflicting settings and invalid Secret references fail rendering.

  • Verify standalone service mode uses the discovery Service only for active-active EPP, and that leader-elected, sidecar, priority routing, GKE, and agentgateway configurations keep their existing EPP address.
  • The umbrella operations guide in llm-d/llm-d needs a companion documentation update.

    Release note _(write NONE if no user-facing change)_:

    ``release-note
    The 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
    <name>-discovery Service, and router.epp.flags.health-checking cannot be set to false.
    ``

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: ahg-g Review duration: 408m
    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
    0.75
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 75.2% (HIGH) · Higher = larger blast radius
    75.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 29.7% · Safe to merge
    29.7%