Skip to content

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

Merged
nodesocket merged 1 commit intomainfrom
nginx-worker-processes
Apr 9, 2026
Merged

Set NGINX worker processes to a static 4 instead of using auto#1
nodesocket merged 1 commit intomainfrom
nginx-worker-processes

Conversation

@nodesocket
Copy link
Copy Markdown
Owner

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.
@nodesocket nodesocket changed the title Update nginx.conf Set NGINX worker processes to a static 4 instead of using auto Apr 9, 2026
@nodesocket nodesocket merged commit 4f4f099 into main Apr 9, 2026
@nodesocket nodesocket deleted the nginx-worker-processes branch April 9, 2026 00:13
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