For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

Rejection ratio stuck after overload ends

The velocity-form proportional-integral-derivative (PID) controller drains the rejection ratio only while the error signal is negative. When admitted traffic stays close to capacity after overload ends, the error signal sits near zero and the controller applies no delta.

Symptoms

  • Arrival rate dropped below capacity some time ago.
  • ergw_adaptive_rejection_ratio is still positive and not decreasing.
  • ergw_adaptive_inflight_current is below ergw_adaptive_inflight_limit, confirming capacity is free.

Possible causes

  • The error signal is near zero because admitted traffic happens to match capacity. Without a negative error, the controller has nothing to drain against.
  • The proportional gain kp is set very low, so even a small negative error produces only a tiny delta per tick.

Solution

To drain the residual rejection ratio faster, temporarily raise the proportional gain:

  1. Confirm capacity is actually free:

    bash

    The expected output shows inflight_current below inflight_limit. If inflight_current is at the limit, the system is still at capacity and the rejection ratio is correct.

  2. Raise the proportional gain so the controller reacts more strongly to small negative errors:

    bash
  3. Watch ergw_adaptive_rejection_ratio drop. Convergence usually takes a few seconds at the higher kp.

  4. Restore the previous kp value once the rejection ratio is back at zero. Leaving kp high amplifies tick-over-tick counter noise during normal operation.

    bash

If you do not need fast recovery, no change is required: the controller does drain on its own, but slowly when the error is near zero.

Read more