Browse Source

Update Nginx config keepalive requests (#4698)

* Update Nginx config keepalive requests
 #4683

* Small change to rerun travis
Joan Miquel 6 years ago
parent
commit
a8e16ba91e

+ 2 - 0
frameworks/PHP/cakephp/deploy/nginx.conf

@@ -17,6 +17,8 @@ http {
     tcp_nopush on;
     tcp_nopush on;
     tcp_nodelay on;
     tcp_nodelay on;
     keepalive_timeout 65;
     keepalive_timeout 65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     open_file_cache max=2000 inactive=20s;
     open_file_cache max=2000 inactive=20s;
     open_file_cache_valid 60s;
     open_file_cache_valid 60s;

+ 2 - 0
frameworks/PHP/codeigniter/deploy/nginx-fpm.conf

@@ -17,6 +17,8 @@ http {
     tcp_nopush on;
     tcp_nopush on;
     tcp_nodelay on;
     tcp_nodelay on;
     keepalive_timeout 65;
     keepalive_timeout 65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     open_file_cache max=2000 inactive=20s;
     open_file_cache max=2000 inactive=20s;
     open_file_cache_valid 60s;
     open_file_cache_valid 60s;

+ 2 - 0
frameworks/PHP/fat-free/deploy/nginx.conf

@@ -19,6 +19,8 @@ http {
     tcp_nopush on;
     tcp_nopush on;
     tcp_nodelay on;
     tcp_nodelay on;
     keepalive_timeout 65;
     keepalive_timeout 65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     open_file_cache max=2000 inactive=20s;
     open_file_cache max=2000 inactive=20s;
     open_file_cache_valid 60s;
     open_file_cache_valid 60s;

+ 2 - 0
frameworks/PHP/fuel/deploy/nginx.conf

@@ -19,6 +19,8 @@ http {
     tcp_nopush on;
     tcp_nopush on;
     tcp_nodelay on;
     tcp_nodelay on;
     keepalive_timeout 65;
     keepalive_timeout 65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     open_file_cache max=2000 inactive=20s;
     open_file_cache max=2000 inactive=20s;
     open_file_cache_valid 60s;
     open_file_cache_valid 60s;

+ 2 - 0
frameworks/PHP/hamlet/deploy/fpm/nginx.conf

@@ -16,6 +16,8 @@ http {
     tcp_nopush on;
     tcp_nopush on;
     tcp_nodelay on;
     tcp_nodelay on;
     keepalive_timeout 65;
     keepalive_timeout 65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     open_file_cache max=2000 inactive=20s;
     open_file_cache max=2000 inactive=20s;
     open_file_cache_valid 60s;
     open_file_cache_valid 60s;

+ 2 - 0
frameworks/PHP/laravel/deploy/nginx.conf

@@ -19,6 +19,8 @@ http {
     tcp_nopush on;
     tcp_nopush on;
     tcp_nodelay on;
     tcp_nodelay on;
     keepalive_timeout 65;
     keepalive_timeout 65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     open_file_cache max=2000 inactive=20s;
     open_file_cache max=2000 inactive=20s;
     open_file_cache_valid 60s;
     open_file_cache_valid 60s;

+ 2 - 0
frameworks/PHP/limonade/deploy/nginx.conf

@@ -19,6 +19,8 @@ http {
     tcp_nopush on;
     tcp_nopush on;
     tcp_nodelay on;
     tcp_nodelay on;
     keepalive_timeout 65;
     keepalive_timeout 65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     open_file_cache max=2000 inactive=20s;
     open_file_cache max=2000 inactive=20s;
     open_file_cache_valid 60s;
     open_file_cache_valid 60s;

+ 2 - 0
frameworks/PHP/lithium/deploy/nginx.conf

@@ -19,6 +19,8 @@ http {
     tcp_nopush on;
     tcp_nopush on;
     tcp_nodelay on;
     tcp_nodelay on;
     keepalive_timeout 65;
     keepalive_timeout 65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     open_file_cache max=2000 inactive=20s;
     open_file_cache max=2000 inactive=20s;
     open_file_cache_valid 60s;
     open_file_cache_valid 60s;

+ 3 - 0
frameworks/PHP/lumen/deploy/nginx.conf

@@ -19,6 +19,9 @@ http {
     tcp_nopush on;
     tcp_nopush on;
     tcp_nodelay on;
     tcp_nodelay on;
     keepalive_timeout 65;
     keepalive_timeout 65;
+    keepalive_disable none;
+    keepalive_requests 1000;
+    
 
 
     open_file_cache max=2000 inactive=20s;
     open_file_cache max=2000 inactive=20s;
     open_file_cache_valid 60s;
     open_file_cache_valid 60s;

+ 2 - 0
frameworks/PHP/phalcon/deploy/nginx.conf

@@ -19,6 +19,8 @@ http {
     tcp_nopush on;
     tcp_nopush on;
     tcp_nodelay on;
     tcp_nodelay on;
     keepalive_timeout 65;
     keepalive_timeout 65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     open_file_cache max=2000 inactive=20s;
     open_file_cache max=2000 inactive=20s;
     open_file_cache_valid 60s;
     open_file_cache_valid 60s;

+ 2 - 0
frameworks/PHP/phpixie/deploy/nginx.conf

@@ -19,6 +19,8 @@ http {
     tcp_nopush on;
     tcp_nopush on;
     tcp_nodelay on;
     tcp_nodelay on;
     keepalive_timeout 65;
     keepalive_timeout 65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     open_file_cache max=2000 inactive=20s;
     open_file_cache max=2000 inactive=20s;
     open_file_cache_valid 60s;
     open_file_cache_valid 60s;

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

@@ -19,6 +19,8 @@ http {
     tcp_nopush on;
     tcp_nopush on;
     tcp_nodelay on;
     tcp_nodelay on;
     keepalive_timeout 65;
     keepalive_timeout 65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     open_file_cache max=2000 inactive=20s;
     open_file_cache max=2000 inactive=20s;
     open_file_cache_valid 60s;
     open_file_cache_valid 60s;

+ 2 - 0
frameworks/PHP/slim/deploy/nginx-fpm-7.conf

@@ -19,6 +19,8 @@ http {
     tcp_nopush on;
     tcp_nopush on;
     tcp_nodelay on;
     tcp_nodelay on;
     keepalive_timeout 65;
     keepalive_timeout 65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     open_file_cache max=2000 inactive=20s;
     open_file_cache max=2000 inactive=20s;
     open_file_cache_valid 60s;
     open_file_cache_valid 60s;

+ 0 - 62
frameworks/PHP/slim/deploy/nginx-hhvm.conf

@@ -1,62 +0,0 @@
-user root;
-worker_processes  auto;
-error_log stderr error;
-worker_rlimit_nofile 200000;
-
-events {
-    worker_connections 16384;
-	multi_accept off;
-	 
-}
-
-http {
-    include       /etc/nginx/mime.types;
-    default_type  application/octet-stream;
-    access_log off;
-    server_tokens off;
-
-    sendfile on;
-    tcp_nopush on;
-    tcp_nodelay on;
-    keepalive_timeout 65;
-
-    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;
-    fastcgi_buffer_size 128k;
-    fastcgi_connect_timeout 30s;
-    fastcgi_send_timeout 60s;
-    fastcgi_read_timeout 60s;
-    fastcgi_busy_buffers_size 256k;
-    fastcgi_temp_file_write_size 256k;
-    reset_timedout_connection on;
-    server_names_hash_bucket_size 100;
-
-    upstream fastcgi_backend {
-        server unix:/slim/hhvm.sock;
-        keepalive 50;
-    }
-
-    server {
-        listen 8080;
-        server_name localhost;
-
-        root /slim/;
-        index index.php;
-
-        location / {
-            try_files $uri /index.php?$uri&$args;
-        }
-
-        location = /index.php {
-            fastcgi_pass   fastcgi_backend;
-            fastcgi_keep_conn on;
-            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
-            include        /etc/nginx/fastcgi_params;
-        }
-    }
-}

+ 2 - 0
frameworks/PHP/symfony/deploy/nginx.conf

@@ -19,6 +19,8 @@ http {
     tcp_nopush on;
     tcp_nopush on;
     tcp_nodelay on;
     tcp_nodelay on;
     keepalive_timeout 65;
     keepalive_timeout 65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     open_file_cache max=2000 inactive=20s;
     open_file_cache max=2000 inactive=20s;
     open_file_cache_valid 60s;
     open_file_cache_valid 60s;

+ 2 - 0
frameworks/PHP/ubiquity/deploy/nginx.conf

@@ -19,6 +19,8 @@ http {
     tcp_nopush on;
     tcp_nopush on;
     tcp_nodelay on;
     tcp_nodelay on;
     keepalive_timeout 65;
     keepalive_timeout 65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     open_file_cache max=2000 inactive=20s;
     open_file_cache max=2000 inactive=20s;
     open_file_cache_valid 60s;
     open_file_cache_valid 60s;

+ 2 - 0
frameworks/PHP/yii2/deploy/nginx-fpm.conf

@@ -14,6 +14,8 @@ http {
     server_tokens off;
     server_tokens off;
     sendfile on;
     sendfile on;
     keepalive_timeout  65;
     keepalive_timeout  65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     upstream fastcgi_backend {
     upstream fastcgi_backend {
         server unix:/var/run/php/php7.3-fpm.sock;
         server unix:/var/run/php/php7.3-fpm.sock;

+ 2 - 0
frameworks/PHP/zend/deploy/nginx.conf

@@ -17,6 +17,8 @@ http {
     sendfile        on;
     sendfile        on;
 
 
     keepalive_timeout  65;
     keepalive_timeout  65;
+    keepalive_disable none;
+    keepalive_requests 1000;
 
 
     upstream fastcgi_backend {
     upstream fastcgi_backend {
         server unix:/var/run/php/php7.3-fpm.sock;
         server unix:/var/run/php/php7.3-fpm.sock;