Rejection ratio stays at zero but requests are dropped
The proportional-integral-derivative (PID) controller keeps the rejection ratio at zero because, on average, arrivals do not exceed capacity. Despite that, individual requests still fail to reach a handler. The drops come from transient bursts that fill the priority queue faster than the controller's 500 ms tick can react. This is the case the max_queue cap is designed to catch.
Symptoms
- ergw_adaptive_rejection_ratio sits at
0. - ergw_adaptive_queue_timeouts_total or ergw_adaptive_requests_shed_total with
reason=queue_fullis increasing. - The structured log shows
queue_fullormax_waiterrors on individual requests.
Possible causes
- A short, sharp arrival burst exceeds the queue depth (
max_queue) before the controller's next tick. - The configured inflight limit (
max_inflight) is below what the backend can sustain, so admitted requests pile up as queue waiters. - A burst of
createtraffic at a peer arrives faster than the priority window can shed it.
Solution
To stop transient drops, raise the burst headroom or reduce queue pressure:
Decide whether to absorb the burst (raise the queue) or to process it faster (raise the inflight limit). Bursts of bounded duration favor the queue; sustained pressure favors the inflight limit.
Raise the queue cap to absorb the burst:
bashThe runtime trade-off is higher worst-case memory during a genuine sustained overload — every queue waiter holds a process monitor, a timer, and a queue entry.
Or raise the inflight limit so admitted requests drain faster:
bashOnly do this when the backend (PFCP peer, Diameter server, AAA dependency) can handle the additional concurrency.
Persist the new value in
loadControl.queue.max_queueorloadControl.queue.max_inflightin the Helm values once you've validated it.
If the number of drops is small relative to total traffic, no change is needed — a few timeouts under bursty load are an acceptable trade-off against memory growth.