Browse Source

Unify stack config (#4748)

* Change pm.max_children to 1024
So all have the same and easy to change

* Change nginx keepalive to 40
now all use the same

* Commented nginx open_file_cache
The bench don't use any static file

* Just to run travis again
Joan Miquel 6 years ago
parent
commit
4f1ba335c3

+ 6 - 5
frameworks/PHP/cakephp/deploy/nginx.conf

@@ -20,10 +20,11 @@ http {
     keepalive_disable none;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;
@@ -39,7 +40,7 @@ http {
 
     upstream fastcgi_backend {
         server unix:/var/run/php/php7.3-fpm.sock;
-        keepalive 50;
+        keepalive 40;
     }
 
     server {

+ 5 - 4
frameworks/PHP/codeigniter/deploy/nginx-fpm.conf

@@ -20,10 +20,11 @@ http {
     keepalive_disable none;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;

+ 5 - 4
frameworks/PHP/fat-free/deploy/nginx.conf

@@ -22,10 +22,11 @@ http {
     keepalive_disable none;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;

+ 6 - 5
frameworks/PHP/fuel/deploy/nginx.conf

@@ -22,10 +22,11 @@ http {
     keepalive_disable none;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;
@@ -41,7 +42,7 @@ http {
 
     upstream fastcgi_backend {
         server unix:/var/run/php/php7.3-fpm.sock;
-        keepalive 50;
+        keepalive 40;
     }
 
     server {

+ 6 - 5
frameworks/PHP/hamlet/deploy/fpm/nginx.conf

@@ -19,10 +19,11 @@ http {
     keepalive_disable none;
     keepalive_requests 1000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     fastcgi_buffers 256 16k;
     fastcgi_buffer_size 128k;
@@ -36,7 +37,7 @@ http {
 
     upstream fastcgi_backend {
         server unix:/var/run/php7.3-fpm.sock;
-        keepalive 50;
+        keepalive 40;
     }
 
     server {

+ 1 - 1
frameworks/PHP/hamlet/deploy/fpm/php-fpm.conf

@@ -11,7 +11,7 @@ listen.backlog = 65535
 listen.owner = www-data
 listen.group = www-data
 pm = static
-pm.max_children = 2048
+pm.max_children = 1024
 pm.start_servers = 512
 pm.min_spare_servers = 50
 pm.max_spare_servers = 512

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

@@ -18,7 +18,7 @@ http {
 
     upstream fastcgi_backend {
         server unix:/hhvm_app/hhvm.sock;
-        keepalive 50;
+        keepalive 40;
     }
 
     server {

+ 5 - 4
frameworks/PHP/kumbiaphp/deploy/nginx.conf

@@ -24,10 +24,11 @@ http {
     #fastcgi_ignore_client_abort on;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;

+ 5 - 4
frameworks/PHP/laravel/deploy/nginx.conf

@@ -22,10 +22,11 @@ http {
     keepalive_disable none;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;

+ 6 - 5
frameworks/PHP/limonade/deploy/nginx.conf

@@ -22,10 +22,11 @@ http {
     keepalive_disable none;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;
@@ -41,7 +42,7 @@ http {
 
     upstream fastcgi_backend {
         server unix:/var/run/php/php7.3-fpm.sock;
-        keepalive 50;
+        keepalive 40;
     }
 
     server {

+ 6 - 5
frameworks/PHP/lithium/deploy/nginx.conf

@@ -22,10 +22,11 @@ http {
     keepalive_disable none;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;
@@ -41,7 +42,7 @@ http {
 
     upstream fastcgi_backend {
         server unix:/var/run/php/php5.6-fpm.sock;
-        keepalive 50;
+        keepalive 40;
     }
 
     server {

+ 6 - 5
frameworks/PHP/lumen/deploy/nginx.conf

@@ -23,10 +23,11 @@ http {
     keepalive_requests 10000;
     
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;
@@ -42,7 +43,7 @@ http {
 
     upstream fastcgi_backend {
         server unix:/var/run/php/php7.3-fpm.sock;
-        keepalive 50;
+        keepalive 40;
     }
 
     server {

+ 6 - 5
frameworks/PHP/phalcon/deploy/nginx.conf

@@ -22,10 +22,11 @@ http {
     keepalive_disable none;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;
@@ -41,7 +42,7 @@ http {
 
     upstream fastcgi_backend {
         server unix:/var/run/php/php7.2-fpm.sock;
-        keepalive 50;
+        keepalive 40;
     }
 
     server {

+ 5 - 4
frameworks/PHP/php/deploy/nginx-pools.conf

@@ -25,10 +25,11 @@ http {
     #fastcgi_ignore_client_abort on;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;

+ 5 - 4
frameworks/PHP/php/deploy/nginx5.conf

@@ -25,10 +25,11 @@ http {
     #fastcgi_ignore_client_abort on;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;

+ 6 - 5
frameworks/PHP/php/deploy/nginx7.conf

@@ -25,12 +25,13 @@ http {
     #fastcgi_ignore_client_abort on;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
-    #FastCGI optimizations
+    #FastCGI optimizations 
     fastcgi_buffers 256 16k;
     fastcgi_buffer_size 128k;
     fastcgi_connect_timeout 30s;

+ 6 - 5
frameworks/PHP/phpixie/deploy/nginx.conf

@@ -22,10 +22,11 @@ http {
     keepalive_disable none;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;
@@ -41,7 +42,7 @@ http {
 
     upstream fastcgi_backend {
         server unix:/var/run/php/php7.3-fpm.sock;
-        keepalive 50;
+        keepalive 40;
     }
 
     server {

+ 6 - 5
frameworks/PHP/slim/deploy/nginx-fpm-5.conf

@@ -22,10 +22,11 @@ http {
     keepalive_disable none;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;
@@ -41,7 +42,7 @@ http {
 
     upstream fastcgi_backend {
         server unix:/var/run/php/php5.6-fpm.sock;
-        keepalive 50;
+        keepalive 40;
     }
 
     server {

+ 6 - 5
frameworks/PHP/slim/deploy/nginx-fpm-7.conf

@@ -22,10 +22,11 @@ http {
     keepalive_disable none;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;
@@ -41,7 +42,7 @@ http {
 
     upstream fastcgi_backend {
         server unix:/var/run/php/php7.3-fpm.sock;
-        keepalive 50;
+        keepalive 40;
     }
 
     server {

+ 6 - 5
frameworks/PHP/symfony/deploy/nginx.conf

@@ -22,10 +22,11 @@ http {
     keepalive_disable none;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
     #FastCGI optimizations
     fastcgi_buffers 256 16k;
@@ -41,7 +42,7 @@ http {
 
     upstream fastcgi_backend {
         server unix:/var/run/php/php7.3-fpm.sock;
-        keepalive 50;
+        keepalive 40;
     }
 
     server {

+ 6 - 5
frameworks/PHP/ubiquity/deploy/nginx.conf

@@ -22,10 +22,11 @@ http {
     keepalive_disable none;
     keepalive_requests 10000;
 
-    open_file_cache max=2000 inactive=20s;
-    open_file_cache_valid 60s;
-    open_file_cache_min_uses 5;
-    open_file_cache_errors off;
+    #the bench don't use any static file
+    #open_file_cache max=2000 inactive=20s;
+    #open_file_cache_valid 60s;
+    #open_file_cache_min_uses 5;
+    #open_file_cache_errors off;
 
   #FastCGI optimizations
     fastcgi_buffers 256 16k;
@@ -41,7 +42,7 @@ http {
 
     upstream fastcgi_backend {
         server unix:/var/run/php/php7.3-fpm.sock;
-        keepalive 50;
+        keepalive 40;
     }
 
     server {

+ 1 - 1
frameworks/PHP/yii2/deploy/nginx-fpm.conf

@@ -19,7 +19,7 @@ http {
 
     upstream fastcgi_backend {
         server unix:/var/run/php/php7.3-fpm.sock;
-        keepalive 50;
+        keepalive 40;
     }
 
     server {

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

@@ -22,7 +22,7 @@ http {
 
     upstream fastcgi_backend {
         server unix:/var/run/php/php7.3-fpm.sock;
-        keepalive 50;
+        keepalive 40;
     }
 
     server {