Is the auto parameter of the worker_processes directive planned to support the Docker runtime?

agile6v nginx-forum at
Thu Apr 12 14:33:36 UTC 2018

Hi, Maxim Dounin

Currently obtaining the number of CPU cores in Docker actually obtains the
number of CPU cores for the host, resulting in that the number of processes
started by "worker_processes auto" cannot match the CPU resources requested
by the container itself. 

For example, if the host has 24 CPU cores and the number of CPU cores
allocated to the container is 4, Nginx will also start 24 worker processes
if the worker_processes auto directive is set, which is not what we

Is there any plan to support this feature?

Best regards

Posted at Nginx Forum:,279418,279418#msg-279418

More information about the nginx mailing list