Skip to content

Set NGINX worker processes to a static 4 instead of using auto#37

Open
nodesocket wants to merge 2 commits intoopenspeedtest:mainfrom
nodesocket:main
Open

Set NGINX worker processes to a static 4 instead of using auto#37
nodesocket wants to merge 2 commits intoopenspeedtest:mainfrom
nodesocket:main

Conversation

@nodesocket
Copy link
Copy Markdown

Using worker_processes auto; uses the number of cpu cores on the physical host machine. In my case 32 cores, which is 32 NGINX workers. Howerver, I limit the docker container quota to use a maximum of 1 cpus. auto is overkill for this, and setting a static of 4 seems reasonable to reduce resource usage.

Using `worker_processes auto;` uses the number of cpu cores on the physical host machine. In my case 32 cores, which is 32 NGINX workers. Howerver, I limit the docker container quota to use a maximum of 1 cpus. `auto` is overkill for this, and setting a static of `4` seems reasonable to reduce resource usage.
Set NGINX worker processes to a static 4 instead of using auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant