Skip to content
Snippets Groups Projects
Select Git revision
  • 2b064090d1ebb724865ce7e6f4b6cc64c4c5cd6e
  • master default protected
  • dwmcallister-patch-1
  • 520-fix-wsl
  • tune-worker-processes
  • alpine-nginxorg
  • 1.29.1
  • 1.29.0
  • 1.28.0
  • 1.27.5
  • 1.27.3
  • 1.27.2
  • 1.27.0
  • 1.26.1
  • 1.26.0
  • 1.25.5
  • 1.25.4
  • 1.25.3
  • 1.25.2
  • 1.25.1
  • 1.25.0
  • 1.24.0
  • 1.23.3
  • 1.23.4
  • 1.23.2
  • 1.22.1
26 results

docker-nginx

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 cgroupv1
 - the quotas from cpu/cpuacct cgroupv1
 - the amount of cpus from cgroupv2
 - the quotas from cgroupv2

The lowest of all five is then applied to nginx.conf.

Fixes #472
2b064090
History
Name Last commit Last update