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.
Most problems are fixed before you would notice. The email comes only when the repairs do not help.
01 · What is checked
| Service | Healthy when | Repaired by itself |
|---|---|---|
| Apache | It runs and answers on port 80. | Yes |
| PHP-FPM | It runs. Shows N/A (mod_php) on a server without PHP-FPM, which is not a fault. | Yes |
| MySQL | It 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
- One failed check is noted. Nothing else happens yet.
- At the second failed check in a row, the agent repairs: it restarts PHP-FPM, clears the PHP OPcache and restarts Apache.
- It checks again. It tries up to 3 repairs.
- 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
- Monitor tab
- Health checks