PHP www pool tunning ( http 503 )
In order to avoid http 503 errors and taking a look at php fpm logs , its has been increased the start_servers, min_spare_servers and max_spare_servers values to avoid erros like WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers). Change-Id: I5d47625ac4702c1b6704c66967d76fac2a895907
This commit is contained in:
parent
658b17ac03
commit
6f938175e0
|
@ -11,17 +11,18 @@ pm = dynamic
|
|||
# the maximum number of children that can be alive at the same time.
|
||||
pm.max_children = 500
|
||||
# the number of children created on startup.
|
||||
pm.start_servers = 20
|
||||
# pm.start_servers = min_spare_servers + (max_spare_servers - min_spare_servers) / 2
|
||||
pm.start_servers = 120
|
||||
# the minimum number of children in 'idle'
|
||||
# state (waiting to process). If the number
|
||||
# of 'idle' processes is less than this
|
||||
# number then some children will be created.
|
||||
pm.min_spare_servers = 10
|
||||
pm.min_spare_servers = 80
|
||||
# the maximum number of children in 'idle'
|
||||
# state (waiting to process). If the number
|
||||
# of 'idle' processes is greater than this
|
||||
# number then some children will be killed.
|
||||
pm.max_spare_servers = 20
|
||||
pm.max_spare_servers = 160
|
||||
pm.max_requests = 500
|
||||
|
||||
chdir = /
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
</Directory>
|
||||
|
||||
<IfModule mod_proxy_fcgi.c>
|
||||
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000<%= @docroot %>/$1
|
||||
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000<%= @docroot %>/$1 retry=0
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_fastcgi.c>
|
||||
|
|
Loading…
Reference in New Issue