{"repo":"renatomefi/php-fpm-healthcheck","free":true,"listed":false,"github":"https://github.com/renatomefi/php-fpm-healthcheck","clone":"git clone https://github.com/renatomefi/php-fpm-healthcheck.git","description":"A POSIX compliant sh script to healthcheck PHP fpm status, can be used only for pinging or check for specific metrics","language":"Python","stars":531,"topics":["docker","php","php-fpm","health-check","kubernetes","livenessprobe"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"A PHP fpm Health Check script With the ascension of containerized applications it becomes more and more useful to have a php-fpm healthcheck . This POSIX compliant sh script gets php-fpm status page using cgi-fcgi tool, parses it's outcome and allows you to choose a metric which you want to check one, a ping mode is also available which only makes sure php-fpm is answering. - Motivation - Installation - Usage - Docker example - Kubernetes example - Why POSIX sh? - Author and License Motivation Previously at work we had Docker containers containing both php-fpm and Nginx processes, while they were managed by another process being Supervisord or s6 overlay for instance. One good example is this image from Ric Harvey It works really well, but I wanted to achieve a few other things like using the official images and its release cycle, logs belonging to their own processes, not mixed, I didn't like to rely on Supervisord since I had bad experiences in the past with it, and other things related to the \"Docker way\", I'm not saying it's perfect but I wanted some of those things. Now comes the php-fpm healthcheck part, while having in place a healthcheck which requested an url in the application asking if it was alive, it was indirectly testing the whole chain, Nginx - php-fpm - application , and now I had the chance to test still the whole chain via nginx but also monitor how busy and stable is php-fpm , if you check its /status page it has quite some useful information, so why not m","default_branch":null,"files":null,"tree":[],"storefront":"/r/renatomefi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/renatomefi/php-fpm-healthcheck/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}