← Back to Pull requests

docs(flowcontrol): document admission limits with multiple EPP replicas #4156

Closed
unknown closed this pull request without merging on Nov 12, 2026 08:39 UTC
View on GitHub
unknown unknown commented on Nov 10, 2026 16:33 UTC
Author

What type of PR is this?

/kind documentation

What this PR does / why we need it:

Documents how flow control bounds admission when several EPP replicas are active, as proposed in #3348:

  • Queue caps (global, per band, and per flow) stay per replica.

  • With a syncer that shares state across replicas, such as redis-syncer, the concurrency-detector dispatch gate is eventually consistent across replicas. Requests that reach several replicas within the sync lag can be dispatched against the same free capacity, so a burst can overshoot the pool limit.

  • In requests mode, a deployment that needs a strict bound gives each replica a fixed share: concurrency-detector reads a local-only inflight-load-producer at the per-endpoint limit divided by the replica count. Scorers keep the shared view through a second, synced producer. That setup works since #3902 fixed #3415. The costs of fixed shares are listed next to the setup, including rolling updates that surge past the bound. Token limits are not strict, because tokens mode does not count dispatch reservations.

  • No synchronous shared admission counter. The reasons are in the issue comment.
  • Files:

  • pkg/epp/flowcontrol/README.md: new "Multiple active replicas" section with the fixed-share example.

  • docs/operations.md: the Active-Active flow control note links to the new section.

  • Redis syncer README: its fixed-share advice is replaced by a link to the new section.

  • inflight-load-producer README: documents syncCrossReplicaState, which the fixed-share setup sets.

  • concurrency-detector README: documents inFlightLoadProducerName, and "Inputs consumed" describes the producer the detector reads.
  • Dividing the limit by the live peer count remains a possible follow-up. #3537 hands the discovered peer set only to syncers that implement PeerConsumer, and redis-syncer does not.

    Measured on kind at 461cafdf with one llm-d-inference-sim endpoint (15s TTFT, --max-num-seqs=200), concurrency-detector in requests mode, flow control on, redis-syncer on Redis 7.4.2 at the default syncInterval (200ms). 30 requests per run through the Istio gateway. Peak is the simulator's vllm:num_requests_running. Every request returned 200.

    | EPP replicas and config | Arrivals | Peak running (pool limit 10) |
    |---|---|---|
    | 1, no syncer | burst | 10 |
    | 2, no syncer | burst | 20 |
    | 2, redis-syncer | burst | 16, 17, 17 |
    | 2, redis-syncer | 100ms apart | 10, 10 |
    | 2, redis-syncer | 50ms apart | 12 |
    | 2, redis-syncer, Redis scaled to 0 while idle | 100ms apart | 20 |
    | 2, fixed share (the README example, maxConcurrency: 5) | burst | 10, 10, 10 |
    | 2, fixed share | 100ms apart | 10 |
    | 1, fixed share | 100ms apart | 5 |

    With the fixed-share config, each replica counted its own 5 requests in both producers, and each detector read saturation 1.0. Redis held only the synced producer's key, with both replicas' fields. With the synced config under a burst, the replicas dispatched 10 and 7 requests, and both detectors read 1.7.

    Which issue(s) this PR fixes:

    Fixes #3348

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

    Test plan:

  • The fixed-share example from the README loads, and two replicas hold a burst to the pool limit.

  • The documented overshoot with a synced producer, and the per-replica bound without a syncer, match the measurements above.

  • Relative links and anchors in the changed files resolve (lychee --offline --include-fragments`).
  • Diff: 447 lines (+335 / -112) across 5 files Reviewer: ahg-g Review duration: 2405m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 447 lines diff across 5 files
    0.45
    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.365
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #4156"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 45.4% (MEDIUM) · Higher = larger blast radius
    45.4%
    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: 17.9% · Safe to merge
    17.9%