Browse Source

Updated PHP settings to avoid 503 by timeouts

In order to avoid 503 by timeouts from
php-fpm service timeout values were increased
as also the max request nbr
per php child proccess.

Change-Id: I06d94b88716895987ea97cf86365b39caeafa385
Sebastian Marcet 2 years ago
parent
commit
274521cca5
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      files/www.conf
  2. 1
    1
      templates/vhost.erb

+ 1
- 1
files/www.conf View File

@@ -23,6 +23,6 @@ pm.min_spare_servers = 80
23 23
 # of 'idle' processes is greater than this
24 24
 # number then some children will be killed.
25 25
 pm.max_spare_servers = 160
26
-pm.max_requests = 500
26
+pm.max_requests = 1500
27 27
 
28 28
 chdir = /

+ 1
- 1
templates/vhost.erb View File

@@ -46,7 +46,7 @@
46 46
   </Directory>
47 47
 
48 48
   <IfModule mod_proxy_fcgi.c>
49
-      ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000<%= @docroot %>/$1 retry=0 timeout=120
49
+      ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000<%= @docroot %>/$1 retry=0 timeout=1800
50 50
   </IfModule>
51 51
 
52 52
   <IfModule mod_fastcgi.c>

Loading…
Cancel
Save