php5-fpm 503 errors
formerly we were using settings for php5-fpm pool that werent suitable for our server configuration. Server has 14G of free ram and we were using pm.max_children = 4096, having in consideration that php process has an avg of 64 MB that give us large number of needed RAM that exceeds our current configuration i changed to pm.max_children = 200, a more suitable number for our current config rite now the avg php if given us 25 MB per process so i guess that we should do a monitoring of this value, an increase the max_children setting as we needeed on the fly. Change-Id: Ibab02f7a88e08cb94d58168e545e6da0cf8d2e7f
This commit is contained in:
parent
5eb035b196
commit
dac2029a73
|
@ -8,9 +8,20 @@ listen.owner = www-data
|
|||
listen.group = www-data
|
||||
|
||||
pm = dynamic
|
||||
pm.max_children = 4096
|
||||
pm.start_servers = 128
|
||||
pm.min_spare_servers = 128
|
||||
pm.max_spare_servers = 256
|
||||
pm.max_requests = 5000
|
||||
# the maximum number of children that can be alive at the same time.
|
||||
pm.max_children = 200
|
||||
# the number of children created on startup.
|
||||
pm.start_servers = 20
|
||||
# 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
|
||||
# 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_requests = 500
|
||||
|
||||
chdir = /
|
||||
|
|
Loading…
Reference in New Issue