update nginx conf

This commit is contained in:
VirtuBox 2019-02-20 18:22:54 +01:00
parent 13abb54e38
commit b543bf8a45
3 changed files with 9 additions and 5 deletions

View File

@ -4,12 +4,14 @@ worker_cpu_affinity auto;
worker_rlimit_nofile 100000; worker_rlimit_nofile 100000;
pid /run/nginx.pid; pid /run/nginx.pid;
pcre_jit on;
events events
{ {
worker_connections 16384;
multi_accept on; multi_accept on;
worker_connections 50000;
accept_mutex on;
use epoll; use epoll;
}
http http
{ {

View File

@ -4,10 +4,13 @@ worker_cpu_affinity auto;
worker_rlimit_nofile 100000; worker_rlimit_nofile 100000;
pid /run/nginx.pid; pid /run/nginx.pid;
pcre_jit on;
events events
{ {
worker_connections 16384;
multi_accept on; multi_accept on;
worker_connections 50000;
accept_mutex on;
use epoll; use epoll;
} }

View File

@ -10,8 +10,7 @@ events
{ {
multi_accept on; multi_accept on;
worker_connections 50000; worker_connections 50000;
accept_mutex off; accept_mutex on;
accept_mutex_delay 200ms;
use epoll; use epoll;
} }