Skip to content

Commit

Permalink
fix(nginx): use 1 worker process
Browse files Browse the repository at this point in the history
The value 'auto' will create a worker process for each CPU thread, which
can be problematic in containerised environments with CPU limits. A
single NGINX worker process should be more than sufficient.

Fixes: #10898
  • Loading branch information
uhthomas committed Apr 9, 2024
1 parent 8163c03 commit dda0733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/main/rootfs/usr/local/nginx/conf/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
daemon off;
user root;
worker_processes auto;
worker_processes 1;

error_log /dev/stdout warn;
pid /var/run/nginx.pid;
Expand Down

0 comments on commit dda0733

Please sign in to comment.