thread_pool support

pull/66/head
Justin 2019-02-08 03:49:42 -06:00
parent 5f3839d7e3
commit 8734028206
1 changed files with 6 additions and 0 deletions

View File

@ -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 {<!--
}}valid=60s;
resolver_timeout 2s;</span></span>
aio threads=pool;
# load configs
include /etc/nginx/conf.d/*.conf;<span ng-if="isModularized()">
include /etc/nginx/sites-enabled/*;</span><span ng-if="isUnified()" ng-repeat="(_site, _domain) in getDomains() track by $index">