diff --git a/public/templates/conf/nginx.conf.html b/public/templates/conf/nginx.conf.html index 3c35e79..dfe2e98 100644 --- a/public/templates/conf/nginx.conf.html +++ b/public/templates/conf/nginx.conf.html @@ -8,6 +8,10 @@ pid {{ data.pid}}; worker_processes {{ data.worker_processes }}; worker_rlimit_nofile 65535; +# See https://www.nginx.com/blog/thread-pools-boost-performance-9x/ +# threads should be equal to (cpus * 2) +thread_pool pool threads=8 max_queue=65536; + events { multi_accept on; worker_connections 65535; @@ -77,6 +81,8 @@ http {