> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/smc/3.15/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/smc/3.15/troubleshooting/load-control-rejection-stuck.md).

# 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
    curl http://{SMC_POD}:9090/oam/v1alpha/load_control/state
    ```

   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
    curl -X PATCH -H 'content-type: application/merge-patch+json' \
         -d '{"rejector":{"kp":0.5}}' \
         http://{SMC_POD}:9090/oam/v1alpha/load_control/config
    ```

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
    curl -X PATCH -H 'content-type: application/merge-patch+json' \
         -d '{"rejector":{"kp":0.1}}' \
         http://{SMC_POD}:9090/oam/v1alpha/load_control/config
    ```

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

- [Adaptive load control technical reference — PID controller](https://docs.cennso.com/components/smc/3.15/reference/load-control.md#pid-controller-rejector)
- [Adaptive load control metrics](https://docs.cennso.com/components/smc/3.15/observability/metrics.md#adaptive-load-control-metrics)
