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

2018-04-12 Thread agile6v
f 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 Posted at Nginx For

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

2018-04-24 Thread agile6v
Hi, Maxim Dounin I submitted a patch that supports the auto parameter of the worker_processes directive to detect the container environment automatically. Refers to the JDK implementation: https://bugs.openjdk.java.net/browse/JDK-8146115 If you have time please review it. Thanks. Posted at Nginx