We want to use the FPM Status Page to monitor for PHP worker exhaustion. We use the process manager ondemand, and we have noticed that we are lacking the data that shows how many children could potentially be created (the max_children directive).
Here we do have max active processes, which shows the amount of processes that have been active at any point. This eventually grows to the max_children on a busy site, but after a restart it resets.
We also have idle_processes, but since we use ondemand as the process manager, we can not use this value for determing how much headroom there is, as more processes are spawned automatically (until max_children is reached).
Would it be possible to expose the max_children directive, so we can determine when all workers are busy and no more workers can be created?
As a sidenote, we originally tried to achieve this by monitoring the listen queue > 0, however it seems this value does not work when FPM is configured with a unix-socket, and only works on TCP/IP sockets. Due to this we cannot use this method either.
Description
Hello,
We want to use the FPM Status Page to monitor for PHP worker exhaustion. We use the process manager
ondemand
, and we have noticed that we are lacking the data that shows how many children could potentially be created (themax_children
directive).The FPM status looks like this:
Here we do have
max active processes
, which shows the amount of processes that have been active at any point. This eventually grows to the max_children on a busy site, but after a restart it resets.We also have
idle_processes
, but since we useondemand
as the process manager, we can not use this value for determing how much headroom there is, as more processes are spawned automatically (untilmax_children
is reached).Would it be possible to expose the
max_children
directive, so we can determine when all workers are busy and no more workers can be created?As a sidenote, we originally tried to achieve this by monitoring the
listen queue > 0
, however it seems this value does not work when FPM is configured with a unix-socket, and only works on TCP/IP sockets. Due to this we cannot use this method either.Thank you!