thread_pool support
parent
5f3839d7e3
commit
8734028206
|
@ -8,6 +8,10 @@ pid {{ data.pid}};
|
||||||
worker_processes {{ data.worker_processes }};
|
worker_processes {{ data.worker_processes }};
|
||||||
worker_rlimit_nofile 65535;
|
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 {
|
events {
|
||||||
multi_accept on;
|
multi_accept on;
|
||||||
worker_connections 65535;
|
worker_connections 65535;
|
||||||
|
@ -77,6 +81,8 @@ http {<!--
|
||||||
}}valid=60s;
|
}}valid=60s;
|
||||||
resolver_timeout 2s;</span></span>
|
resolver_timeout 2s;</span></span>
|
||||||
|
|
||||||
|
aio threads=pool;
|
||||||
|
|
||||||
# load configs
|
# load configs
|
||||||
include /etc/nginx/conf.d/*.conf;<span ng-if="isModularized()">
|
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">
|
include /etc/nginx/sites-enabled/*;</span><span ng-if="isUnified()" ng-repeat="(_site, _domain) in getDomains() track by $index">
|
||||||
|
|
Loading…
Reference in New Issue