Browse Source

Optimize php-ngx-async nginx.conf (#5348)

Joan Miquel 5 years ago
parent
commit
aeb5fd9dce
1 changed files with 4 additions and 4 deletions
  1. 4 4
      frameworks/PHP/php-ngx/deploy/nginx_async.conf

+ 4 - 4
frameworks/PHP/php-ngx/deploy/nginx_async.conf

@@ -2,17 +2,17 @@ user www-data;
 worker_processes  auto;
 error_log stderr error;
 #worker_rlimit_nofile 100000;
-#timer_resolution 1000ms;
+timer_resolution 1s;
 daemon off;
 pcre_jit on;
 
 events {
-    worker_connections 65536;
+    worker_connections 1000000;
 	multi_accept off;	 
 }
 
 http {
-    include       /etc/nginx/mime.types;
+    #include       /etc/nginx/mime.types;
     access_log off;
     server_tokens off;
 
@@ -21,7 +21,7 @@ http {
     tcp_nodelay on;
     keepalive_timeout 65s;
     keepalive_disable none;
-    keepalive_requests 200000;
+    keepalive_requests 10000000;
 
     php_ini_path /deploy/conf/php.ini;