Hi Roman Arutyunyan, Yes. If mirror directive supports a variable and its behavior should be different from static mirror. That mirror directive support variables can dynamically decide whether they need to be turned on and the configuration will be more concise. If it is described clearly in the document, it should also be easy to understand. Thanks, agile6v -----by agile6v - Nginx Development
# HG changeset patch # User agile6v <liuwei19@xiaomi.com> # Date 1584110606 -28800 # Fri Mar 13 22:43:26 2020 +0800 # Node ID e4a0277cab79865fde6fefeed9374154449e6948 # Parent 4eb606b4a5b521603c23223cf8863f3999df743c mirror directive supports variable. diff -r 4eb606b4a5b5 -r e4a0277cab79 src/http/modules/ngx_http_mirror_module.c --- a/src/http/modules/ngx_http_mirror_module.by agile6v - Nginx Development
Hi,Maxim This feature is not a much needed, but it can reduce the cost of manual configuration. If there is a better implementation that can solve this problem, we are also very much looking forward to it. I hope you can think again. Thanks. Regards, Agile6v ------------------ Original ------------------ From: "Maxim Dounin";<mdounin@mdounin.ru>; Date: Apr 25,by agile6v - Nginx Development
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.by agile6v - Nginx Mailing List - English
# HG changeset patch # User Agile6v <agile6v@agile6v.com> # Date 1524585905 -28800 # Wed Apr 25 00:05:05 2018 +0800 # Node ID 89793df28d1bcf2baf00e389e6806d32d7435886 # Parent 7c614ef3c6ea330c62630d5065f961a27d0f82cd The auto parameter of the worker_processes supports to detect the container environment. Docker mounts cgroup information into container starting with version 1by agile6v - Nginx Development
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 willby agile6v - Nginx Mailing List - English