From 8734028206a1b1957d439cff8b9f1c240dc49a40 Mon Sep 17 00:00:00 2001 From: Justin Date: Fri, 8 Feb 2019 03:49:42 -0600 Subject: [PATCH] thread_pool support --- public/templates/conf/nginx.conf.html | 6 ++++++ 1 file changed, 6 insertions(+) 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 {