Rejection ratio oscillates between 0 and 1
The proportional-integral-derivative (PID) controller's per-tick delta is large enough that a single tick of error drives the rejection ratio to either bound (0 or 1) before the next tick can update the error signal. The output then bang-bangs between zero and full rejection.
Symptoms
- ergw_adaptive_rejection_ratio swings between
0and1every few ticks. - The structured log shows
delta_imagnitudes comparable to or larger than the current rejection ratio. - Operators see request error rates that lurch from zero to severe and back.
Possible causes
- The integral gain
kiis too large for the current traffic shape. - A misconfigured derivative gain
kdamplifies high-frequency noise into the integral term.
Solution
To stabilize the controller, lower the integral gain:
Set the integral gain to the design-guide recommendation:
bashWatch ergw_adaptive_rejection_ratio for at least one minute. If it still oscillates, lower further:
bashIf the structured log shows
delta_dvalues comparable in magnitude todelta_i, also reduce the derivative gain to dampen the tick-over-tick noise:bashPersist the working values in
loadControl.rejector.kiandloadControl.rejector.kdin the Helm values.
The controller becomes slower to converge with a smaller ki but stops bang-banging.