Browse Source

Update Nginx Rlimit (#4744)

* [ci skip]  Delete Twig template
After change to php template almost doubled fortunes requests

* Update nginx worker_rlimit_nofile

* Update php_ngx keealive request
to 10000 the same that normal php

* Ngx_php use default_server
Joan Miquel 6 years ago
parent
commit
07ce9b6196

+ 1 - 1
frameworks/PHP/kumbiaphp/deploy/nginx.conf

@@ -1,7 +1,7 @@
 user www-data;
 worker_processes  auto;
 error_log stderr error;
-#worker_rlimit_nofile 100000;
+worker_rlimit_nofile 2000000;
 timer_resolution 1000ms;
 
 events {

+ 1 - 1
frameworks/PHP/php/deploy/nginx-pools.conf

@@ -2,7 +2,7 @@ user www-data;
 worker_processes  auto;
 error_log stderr error;
 timer_resolution 1000ms;
-#worker_rlimit_nofile 100000;
+worker_rlimit_nofile 2000000;
 pcre_jit on;
 
 events {

+ 1 - 1
frameworks/PHP/php/deploy/nginx5.conf

@@ -2,7 +2,7 @@ user www-data;
 worker_processes  auto;
 error_log stderr error;
 timer_resolution 1000ms;
-#worker_rlimit_nofile 100000;
+worker_rlimit_nofile 2000000;
 pcre_jit on;
 
 events {

+ 1 - 1
frameworks/PHP/php/deploy/nginx7.conf

@@ -2,7 +2,7 @@ user www-data;
 worker_processes  auto;
 error_log stderr error;
 timer_resolution 1000ms;
-#worker_rlimit_nofile 100000;
+worker_rlimit_nofile 2000000;
 pcre_jit on;
 
 events {

+ 2 - 2
frameworks/PHP/php/deploy/nginx_php.conf

@@ -20,12 +20,12 @@ http {
     tcp_nodelay on;
     keepalive_timeout 65s;
     keepalive_disable none;
-    keepalive_requests 1000;
+    keepalive_requests 10000;
 
     php_ini_path /deploy/conf/php.ini;
 
     server {
-        listen       8080 reuseport;
+        listen       8080 default_server reuseport;
 
         root /;
         index  index.html;