Skip to content
Snippets Groups Projects
user avatar
Konstantin Pavlov authored
The script is a no-op bye default, you would need to enable its logic by
setting an NGINX_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNE variable to any
value.

The script then tries to get the following values:

 - getconf _NPROCESSORS_ONLN
 - the amount of cpus from cpuset cgroup
 - the quotas from cpu/cpuacct cgroup

The lowest of all three is then applied to nginx.conf.
25c42e92
History
Name Last commit Last update