I did not find this explained anywere, please let me know if my assumption is right: if I set a path for the Health Check, and at some point the application does not respond to it anymore, are the instances restarted?
Also, is there any way we can control how often is the health check called? I saw it’s called every few seconds so maybe I want to set it to be called less often.
Found the answer myself, here’s the detailed explanation about Health Checks:
The part I was searching for is this (paragraph from the link above):
…
We also restart your apps automatically if they become unresponsive or start returning errors. We do this by utilizing user-defined health checks , described below.
…
After your app is live, we continue to monitor its health by running a health check every few seconds. If your app starts failing the health check, we restart it automatically. As with most software, this tends to fix to the issue, but if it doesn’t we mark the deploy failed and send you a notification so you can fix things.
Is it possible to receive alerts when the Render health check fails? I could sign up for another service to do this but it would be great if I could receive an email from Render or if service health was visible in the dashboard (latency on the health check, failed requests, etc).
We actually have recently started showing health check failures under the Events tab for services. I definitely understand the desire for email alerts and more information on these health checks, though- if you’d like, you can make a feature request for these here: Feature Requests | Render.