Tuning the System
A number of Control Center parameters can be tuned according to the available resources and the system load. These include:
/etc/netrounds/netrounds.conf
CALL_EXECUTER_MAX_CHILDREN
: This configures how many background jobs can run in parallel. The default is 20. Each test and monitor (not each task) will periodically run as a background job. If you have many tests or monitors, you might want to set this value to match the number of running tests and monitors to prevent those jobs from queuing up and delaying the collecting of data. The current queue length can be seen as thescheduled_call_latency
parameter returned by thencc status
command.
/etc/apache2/sites-available/netrounds-ssl.conf
WSGIDaemonProcess netrounds ... processes
: This configures how many HTTP requests to the Control Center GUI can be handled at the same time. The default is 10. If you have many or slow requests, you might need to increase this number. If no worker is available to start processing a request, a 504 Gateway Timeout response will be returned.
/etc/postgresql/10/main/postgresql.conf
max_connections
: As a rule of thumb, this value should be roughly equal toCALL_EXECUTER_MAX_CHILDREN
+WSGIDaemonProcess processes
+ 50.shared_buffers
: For advice on setting this parameter, see this page: https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-SHARED-BUFFERS.