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

# Adjust rate limits at runtime

Rate limits protect CDF from being overwhelmed by too many charging records:

- **CDF Receiver** limits how many ACRs (Accounting Requests) it accepts per second from SMF. When too many ACRs arrive, CDF Receiver responds with `TOO_BUSY` and rejects the extra requests.
- **CDF Sender** limits how many CDRs it processes per second from the CDR queue.

 You configure these limits in your [`CDFReceiver`](https://docs.cennso.com/components/cdf/latest/concepts/cdf-receiver.md#maximum-number-of-acrs) and [`CDFSender`](https://docs.cennso.com/components/cdf/latest/concepts/cdf-sender.md#maximum-number-of-cdrs) Custom Resources (or `receiver.rate_limit` and `sender.rate_limit` in Helm values). However, you can also change these limits while CDF is running without restarting it. This is useful when:

- You're experiencing high traffic and need to temporarily increase the limit
- You want to reduce load on CDF during maintenance
- You're testing how CDF handles different traffic levels

> [!IMPORTANT]
> These changes are temporary. When you restart CDF, the rate limits reset to the values configured in your `CDFReceiver` or `CDFSender` Custom Resource.

## Change CDF Receiver rate limit

To set the CDF Receiver limit to, for example, `600` ACRs per second, run this command inside the CDF Receiver pod:

```bash
/opt/cdf_receiver/bin/cdf_receiver rpc 'Application.put_env(:cdf_receiver, :rate_limit, 600)'
```

## Change CDF Sender rate limit

To set the CDF Sender limit to, for example, `800` CDRs per second, run this command inside the CDF Sender pod:

```bash
/opt/cdf_sender/bin/cdf_sender rpc 'Application.put_env(:cdf_sender, :rate_limit, 800)'
```
