Open polarnik opened 1 week ago
For example, we used big taskExecutorCorePoolSize (rabbitConnectionFactorySharedExecutor)
We had 100% CPU Usage in PostgreSQL and the service restarts:
Take a look on the day: 08/15
The config was updated on 08/21:
maxDBConn: 50
maxConcurrency: 5
taskExecutorCorePoolSize: 10
The service is working well, without restarts and without 100% CPU Usage in PostgreSQL
Hello!
Default thread pool settings are not the best:
The source: https://github.com/qameta/allure-testops-deployment/blob/master/charts/allure-testops/values.yaml
200 threads rabbitConnectionFactorySharedExecutor (taskExecutorCorePoolSize: 200) can not work with 10 JDBC connections (maxDBConn: 10), only. Allure health check will not get a free connection, and Kubernetes will restart the service, because the service is not healthy.
And 200 threads rabbitConnectionFactorySharedExecutor will allocate all CPU resources in PostgreSQL.
The best settings are: