Welcome! Log In Create A New Profile

Advanced

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

April 12, 2018 10:33AM
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 expected.

Is there any plan to support this feature?

Best regards
agile6v
Subject Author Posted

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

agile6v April 12, 2018 10:33AM

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

Maxim Dounin April 12, 2018 11:32AM

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

agile6v April 24, 2018 12:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 133
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready