Health Checks and Auto-Healing

Checks every 60 seconds, repairs on its own

How your web server stays up

Every 60 seconds the Opensolr agent checks Apache, PHP-FPM and MySQL on your server. When Apache or PHP-FPM stops, it repairs it on its own, and you get an email only when the repair does not work.

Every 60 seconds the agent checks Apache, PHP-FPM and MySQL. After 2 failed checks it repairs: restart PHP-FPM, clear OPcache, restart Apache, up to 3 times. If the service is still down after 3 repairs, the Server Error email is sent. Check Repair Alert every 60 seconds Apache, PHP-FPM and MySQL after 2 failures: restart PHP-FPM, clear OPcache, restart Apache still down after 3 repairs: Server Error email up to 3 times
Every 60 seconds the agent checks Apache, PHP-FPM and MySQL. After 2 failed checks it repairs: restart PHP-FPM, clear OPcache, restart Apache, up to 3 times. If the service is still down after 3 repairs, the Server Error email is sent. Check Repair Alert every 60 seconds Apache, PHP-FPM and MySQL after 2 failures: restart PHP-FPM, clear OPcache, restart Apache still down after 3 repairs: Server Error email up to 3 times

Most problems are fixed before you would notice. The email comes only when the repairs do not help.

01 · What is checked

ServiceHealthy whenRepaired by itself
ApacheIt runs and answers on port 80.Yes
PHP-FPMIt runs. Shows N/A (mod_php) on a server without PHP-FPM, which is not a fault.Yes
MySQLIt runs. Shows N/A (not installed) on a server without MySQL or MariaDB.No: shown on the Monitor tab only, with no email

02 · When a check fails

  1. One failed check is noted. Nothing else happens yet.
  2. At the second failed check in a row, the agent repairs: it restarts PHP-FPM, clears the PHP OPcache and restarts Apache.
  3. It checks again. It tries up to 3 repairs.
  4. Still down after 3 repairs: the Server Error email goes out, at most once an hour for the same problem. Choose who gets it in Alerts.

03 · See it yourself

On the Monitor tab, Health Check Status shows each service as Healthy, Down or N/A. Run Check runs the checks now. When something is wrong, a note under the list reminds you that the agent repairs it on its own and emails only if that fails.

04 · When the whole server goes quiet

The agent reports in with every check, every 60 seconds. When nothing arrives for more than 10 minutes, Opensolr tries to reach the agent and to restart it. If the server still does not answer, its status becomes Offline and the Server Offline email goes out. When the reports start again, the status goes back to normal by itself.

Monitor tab