That wouldn't be suitable for what caused the earlier downtime (FastCGI daemon was overloaded - we had about 400 requests a minute coming in and it simply died).
What I will be implementing is a custom watchdog that simply hits our website and if there's anything other than an HTTP 200, fires up more servers.
Monit can do thisWhat I will be implementing is a custom watchdog that simply hits our website and if there's anything other than an HTTP 200, fires up more servers.
Code:
check process apache with pidfile /var/run/httpd.pid
start "/etc/init.d/httpd start"
stop "/etc/init.d/httpd stop"
if failed host btcinstant.com port 80
protocol http request "/testfile.php"
then restart
if 5 restarts within 5 cycles then timeout
or even restart can be replaced with custom script which increases workers count.