Open andypost opened 4 years ago
Looks we have to add it to use k8s, the script is https://github.com/renatomefi/php-fpm-healthcheck#enable-php-fpm-status-page
For nginx unit it could use curl
/var/www/html/web # curl --unix-socket /run/control.unit.sock http://localhost/status/applications/drupal/processes/running
1
var/www/html/web # curl --unix-socket /run/control.unit.sock http://localhost/status/
{
"connections": {
"accepted": 2,
"active": 0,
"idle": 0,
"closed": 2
},
"requests": {
"total": 2
},
"applications": {
"drupal": {
"processes": {
"running": 1,
"starting": 0,
"idle": 1
},
"requests": {
"active": 0
}
}
}
}
to wait for postgresql better to use vendor/bin/drush sqlq "SELECT 1"
so it
Also would be great to make it configurable https://github.com/wodby/php/blob/master/7/templates/zz-www.conf.tmpl#L28
https://github.com/wodby/php/search?q=health&type=Commits