> 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-shadow-mismatch.md).

# Shadow shed rate differs from `jobs` shed rate in `rate-limit-observe` mode

In `rate-limit-observe` admission mode, two independent shedders run side by side: the `jobs`-based regulator that actually controls admission, and the adaptive stack that observes traffic and reports what it would have done. The two use fundamentally different admission logic, so they emit different shed counts.

This is **expected behavior**, not a malfunction. The shadow view exists precisely so operators can compare the two before flipping to `mode: adaptive`.

## Symptoms

- **ergw_adaptive_requests_shed_total** shows a much higher (or lower) rate than **ergw_admission_requests_shed_total** (the dispatcher's per-outcome counter).
- The two rate plots diverge on the **api-latency** Grafana dashboard.

## Possible causes

- The `jobs` regulator uses static per-tier rate or counter limits, while the adaptive stack uses a velocity-form proportional-integral-derivative (PID) controller plus an empirical percentile tracker. There is no reason for the two to agree on a per-request basis.
- A persistent gap in either direction means `mode: adaptive` would change the admission profile of the deployment.

## Solution

The right action depends on which way the gap goes:

1. Compare the two rates over a representative traffic window (at least one busy hour, ideally a full day).

2. If the adaptive shed rate is consistently **higher** than the `jobs` shed rate, `mode: adaptive` would reject more traffic than the current deployment. Reduce shedding before flipping:

    ```bash
    curl -X PATCH -H 'content-type: application/merge-patch+json' \
         -d '{"rejector":{"ki":0.1}}' \
         http://{SMC_POD}:9090/oam/v1alpha/load_control/config
    ```

   Or raise the inflight limit so capacity matches the deployment's real backend:

    ```bash
    curl -X PATCH -H 'content-type: application/merge-patch+json' \
         -d '{"queue":{"max_inflight":300}}' \
         http://{SMC_POD}:9090/oam/v1alpha/load_control/config
    ```

3. If the adaptive shed rate is consistently **lower**, `mode: adaptive` would accept more traffic than the current deployment. Verify that downstream capacity (PFCP peer, Diameter server, AAA dependency) can absorb the additional load before flipping.

4. Once the shadow numbers look reasonable for your deployment, flip to `mode: adaptive`:

    ```bash
    curl -X PUT -H 'content-type: application/json' \
         -d '{"mode":"adaptive"}' \
         http://{SMC_POD}:9090/oam/v1alpha/load_control/mode
    ```

   Persist the choice by setting `loadControl.mode: adaptive` in the Helm values.

## Read more

- [Adaptive load control — Migration path](https://docs.cennso.com/components/smc/3.15/config/load-control.md#migration-path)
- [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)
