Vegas shrinks the inflight limit continuously
The Vegas auto-tuner reduces the inflight limit when the current 90th-percentile (P90) latency exceeds the long-term latency baseline. Sustained shrinkage means real backend capacity is degrading, or the long-term baseline (long_ema_alpha) is drifting upward too aggressively to track the short-term signal.
Symptoms
- ergw_adaptive_inflight_limit decreases monotonically even at moderate load.
- The structured log shows repeated
gradient < 1.0decisions. - ergw_adaptive_latency_p90_microseconds trends upward over the long-term baseline.
Possible causes
- A genuine backend problem: a PFCP peer is slow, a Diameter server is timing out, or an Authentication, Authorization, and Accounting (AAA) dependency is unhealthy.
- The Vegas long-term baseline (
long_ema_alpha) is too aggressive, so the long-term EMA drifts upward and Vegas chases its own tail.
Solution
To restore a stable inflight limit, identify whether the backend or the configuration is the cause.
Open the api-latency Grafana dashboard and look at outbound latency per downstream service.
If a downstream service shows elevated P95 or P99 latency, fix the backend. Vegas will recover once latency stabilizes.
If all downstreams look healthy but the long-term EMA is climbing, lower the long-term smoothing factor so the baseline stays more stable:
bashWatch ergw_adaptive_inflight_limit for at least five minutes. If it stabilizes, persist the new value in
loadControl.vegas.long_ema_alphain the Helm values.As a safety floor, raise
min_gradientso a single latency spike cannot halve the limit in one tick:bash