From: Luca Toscano
This directive can be used to fine-tune the per-process connection - limit. A process will only accept new connections if the current number of + limit. A process will only accept new connections if the current number of connections (not counting connections in the "closing" state) is lower than:
@@ -255,27 +255,36 @@ of theAn estimation of the maximum concurrent connections across all the processes given + an average value of idle worker threads can be calculated with: +
-max_connections = ThreadsPerChild + (AsyncRequestWorkerFactor * idle_workers) -ThreadsPerChild = idle_workers + busy_workers - -max_connections = (idle_workers + busy_workers) + (AsyncRequestWorkerFactor * idle_workers) - = busy_workers + (AsyncRequestWorkerFactor + 1) * idle_workers +
+ (
The absolute maximum numbers of concurrent connections is:
+When all the worker threads are idle, then absolute maximum numbers of concurrent + connections can be calculared in a simpler way:
(
The above example is only related to a theoretical maximum, let's take a look to a more common use case:
- -Tuning