How to adjust the number of threads and concurrency for handling high volume of incoming requests to Conjur
103
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 15:50 PM
Objective
A database can manage a limited and specific number of connections at the same time.
In Large-Scale environments, where multiple synchronizers are connected to the same Vault and Conjur instances, it is possible that the number of available Conjur database connections will be exceeded, for example, in a Disaster Recovery situation.
Exceeding the number of connections that the database can handle, may cause:
In Large-Scale environments, where multiple synchronizers are connected to the same Vault and Conjur instances, it is possible that the number of available Conjur database connections will be exceeded, for example, in a Disaster Recovery situation.
Exceeding the number of connections that the database can handle, may cause:
-
Performance degradation
-
Connection errors
-
Application crashes
-
System Slowdown
An adjustment can be accomplished by tuning the environment variable values for the concurrent processes and thread counts.
-
Going above 5 concurrent secret loads in Conjur might result in unexpected behavior.
-
It is recommended to avoid using the User Interface (Conjur UI) during a DR situation or any scenario involving substantial data writing to Conjur database.
Environment
10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0;13.2;13.1 Conjur Disaster Recovery Vault;Vault Conjur Synchronizer
Procedure
1 Set variable values:
-
podman exec -it ${conjur_container_name} bash
-
sed -i '/PUMA_THREAD_MAX.*$/d' /opt/conjur/etc/possum.conf
-
evoke variable set --no-restart PUMA_THREAD_MAX 2
-
evoke variable set --restart WEB_CONCURRENCY 5
2 Check variable values:
From outside the conjur container (CTRL + D if still inside):
-
podman logs ${conjur_container_name} | grep "conjur-possum" | grep "Max threads"
-
Check that log shows: Max threads: 2
-
podman logs ${conjur_container_name} | grep "conjur-possum" | grep "Workers"
-
Check that log shows: Workers: 5
Done.