Shadow shed rate differs from jobs shed rate in rate-limit-observe mode
In rate-limit-observe admission mode, two independent shedders run side by side: the jobs-based regulator that actually controls admission, and the adaptive stack that observes traffic and reports what it would have done. The two use fundamentally different admission logic, so they emit different shed counts.
This is expected behavior, not a malfunction. The shadow view exists precisely so operators can compare the two before flipping to mode: adaptive.
Symptoms
- ergw_adaptive_requests_shed_total shows a much higher (or lower) rate than ergw_admission_requests_shed_total (the dispatcher's per-outcome counter).
- The two rate plots diverge on the api-latency Grafana dashboard.
Possible causes
- The
jobsregulator uses static per-tier rate or counter limits, while the adaptive stack uses a velocity-form proportional-integral-derivative (PID) controller plus an empirical percentile tracker. There is no reason for the two to agree on a per-request basis. - A persistent gap in either direction means
mode: adaptivewould change the admission profile of the deployment.
Solution
The right action depends on which way the gap goes:
Compare the two rates over a representative traffic window (at least one busy hour, ideally a full day).
If the adaptive shed rate is consistently higher than the
jobsshed rate,mode: adaptivewould reject more traffic than the current deployment. Reduce shedding before flipping:bashOr raise the inflight limit so capacity matches the deployment's real backend:
bashIf the adaptive shed rate is consistently lower,
mode: adaptivewould accept more traffic than the current deployment. Verify that downstream capacity (PFCP peer, Diameter server, AAA dependency) can absorb the additional load before flipping.Once the shadow numbers look reasonable for your deployment, flip to
mode: adaptive:bashPersist the choice by setting
loadControl.mode: adaptivein the Helm values.