# Backend

{% hint style="info" %}
The backend starts with a precomputed number of processes based on the available CPUs.&#x20;

This value can be overridden by setting the number of workers in the configuration file.

Processes are automatically restarted after reaching the maximum number of handled requests \
(default: **10000**), which can also be adjusted in the configuration file.
{% endhint %}

To set custom values:

{% stepper %}
{% step %}

### <sup>Edit configuration file</sup>

```bash
/datasentinel/soft/datasentinel_backend/config/datasentinel.yml
```

{% endstep %}

{% step %}

### <sup>Set desired values</sup>

```
apis:
  workers: 15
  max_requests: 15000

```

{% endstep %}

{% step %}

### <sup>Restart backend service</sup>

```
sudo systemctl stop datasentinel_backend
sudo systemctl start datasentinel_backend
```

{% endstep %}
{% endstepper %}

***
