Skip to content
Nov 3, 2026 - Version 2026.10 has been released
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Backend

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.

To set custom values:

1

Edit configuration file

/datasentinel/soft/datasentinel_backend/config/datasentinel.yml
2

Set desired values

apis:
  workers: 15
  max_requests: 15000
3

Restart backend service

sudo systemctl stop datasentinel_backend
sudo systemctl start datasentinel_backend

Purge of inactive instances

An instance is inactive when it stopped sending metrics for longer than the retention period of the metrics database. Its metrics have all expired, but it is still listed in the inventory.

The platform can remove these instances from the inventory automatically, once a day at 03:00. This is disabled by default.

To enable it:

1

Edit configuration file

/datasentinel/soft/datasentinel_backend/config/datasentinel.yml
2

Add the inventory section

inventory:
  purge_obsolete_instances: true
3

Restart dispatcher service

sudo systemctl stop datasentinel_dispatcher
sudo systemctl start datasentinel_dispatcher

At startup, the dispatcher writes the state of the purge in /datasentinel/log/datasentinel.log:

Obsolete instances purge: enabled

You can also list and purge inactive instances by hand with the purge_inactive_instances.sh script. Refer to Tooling.


Agentless agents

The collection settings of the agentless instances are set once for the whole platform, in the agent section of the backend configuration file.

Parameter
Default
Description
Since

tables-monitoring-limit

5000

Table and index activity is collected only if the number of tables in the instance is below this limit.

2025.11

query-monitoring-limit

30000

Number of unique queries collected per day. Each unique query gets an ID stored in a daily cache. Above the limit, query monitoring is disabled for the rest of the day.

2025.11

use-postgres-queryid

false

Use the PostgreSQL queryid instead of an MD5 hash of the text as the query identifier. Refer to Query Identifier.

2026.02

query-monitoring-min-calls

2

A query of pg_stat_statements is collected if it ran at least this number of times or if it reached the minimum time below. Lowest value: 2.

2026.10

query-monitoring-min-time

1

Minimum total execution time of a query, in seconds. Lowest value: 0.

2026.10

The two query-monitoring-min-* filters also apply to the execution plans. They are described in Query Monitoring Filters. They must be whole numbers: any other value is ignored and the default is kept. A value below the lowest value is raised to it.

To collect every query of pg_stat_statements, set query-monitoring-min-time to 0. It increases the number of unique queries, so check the query-monitoring-limit.

To set custom values:

1

Edit configuration file

2

Set desired values

Set only the parameters you want to change.

3

Restart dispatcher service

Last updated