> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/smc/latest/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/latest/guides/rate-limitation.md).

# Rate Limitation

> [!NOTE]
> The `requestLimits` Helm values documented on this page are the
> original static admission controls for SMC. As of SMC 3.15, they are
> complemented by a YAML-driven load control surface under
> [`loadControl`](https://docs.cennso.com/components/smc/latest/guides/load-control.md). The chart automatically translates the
> `create`, `delete`, and `other` tiers of `requestLimits` into the new
> `loadControl.rateLimit` shape so that existing values files work
> unchanged against the new admission implementation. Operators do not need to
> migrate their values, but new deployments should prefer the
> [adaptive load control](https://docs.cennso.com/components/smc/latest/guides/load-control.md) surface, which also supports
> `counter`-based concurrency limits, CPU feedback, per-tier priority
> shedding, and a Vegas concurrency auto-tuner.
>
> `requestLimits.upfRestart` does not have a `loadControl` equivalent and
> remains the only way to limit session teardowns during a User Plane
> Gateway restart.

**GPC** can control the amount of **SMC** requests which are handled at a given time.

| Parameter | Description | Default |
| --- | --- | --- |
| requestLimits.create.rate | Maximum rate of incoming Create Session/PDP requests | 50 |
| requestLimits.create.queueLen | Maximum queue for Create Session/PDP requests. When the queue is full, requests are rejected. | 10 |
| requestLimits.create.queueTime | Maximum queue time for Create Session/PDP requests. When a request exceeds this time waiting in the queue, it is rejected. | 500 |
| requestLimits.delete.rate | Maximum number of concurrent Delete Session/PDP requests | 50 |
| requestLimits.delete.queueLen | Maximum queue for Delete Session/PDP requests. When the queue is full, requests are rejected. | 10 |
| requestLimits.delete.queueTime | Maximum queue time for Delete Session/PDP requests. When a request exceeds this time waiting in the queue, it is rejected. | 500 |
| requestLimits.other.rate | Maximum rate of other GTP requests | 50 |
| requestLimits.other.queueLen | Maximum queue for other GTP requests. When the queue is full, requests are rejected. | 10 |
| requestLimits.other.queueTime | Maximum queue time for other GTP requests. When a request exceeds this time waiting in the queue, it is rejected. | 500 |
| requestLimits.upfRestart | Maximum rate of sessions closed when a UPF is restarted | 50 |

The incoming messages of each type (`create`, `delete`, or `other`) are processed at the specified rate (request / second). Any messages above that rate are queued, but messages that are queued for more than specified in the  **queueTime** are rejected with the cause `Resource not available`. Larger queues (higher values of **queueLen**) accommodate larger or longer bursts, but the overload condition takes longer to detect by the SMC peer so the latency is increased.

> [!NOTE]
> To decide how many requests of a certain request type to be handled, SMC requests must be decoded. Decoding consumes CPU cycles. It is possible to overload the decoding handlers by feeding them too many requests. If you experience such behaviour in production, you need to limit the incoming requests on a network level.
