docs(flowcontrol): document admission limits with multiple EPP replicas #4156
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
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.365
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4156"
general
weight: 0.35
ahg-g
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:
redis-syncer, theconcurrency-detectordispatch 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.requestsmode, a deployment that needs a strict bound gives each replica a fixed share:concurrency-detectorreads a local-onlyinflight-load-producerat 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, becausetokensmode does not count dispatch reservations.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.inflight-load-producerREADME: documentssyncCrossReplicaState, which the fixed-share setup sets.concurrency-detectorREADME: documentsinFlightLoadProducerName, 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, andredis-syncerdoes not.Measured on kind at 461cafdf with one llm-d-inference-sim endpoint (15s TTFT,
--max-num-seqs=200),concurrency-detectorinrequestsmode, flow control on,redis-synceron Redis 7.4.2 at the defaultsyncInterval(200ms). 30 requests per run through the Istio gateway. Peak is the simulator'svllm: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
NONEif no user-facing change)_:``
release-note
`NONE
Test plan: