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
This commit is contained in:
Sebastian Marcet 2016-11-01 23:48:51 -03:00
parent b70762da8b
commit 274521cca5
2 changed files with 2 additions and 2 deletions

View File

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

View File

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