# Backend

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

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 %}

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.datasentinel.io/manual/implementation/platform-usage/configuration/backend.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
