mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-26 00:41:07 +00:00
95bbe6ea49
We add an endpoint to the supervisor API that checks the following conditions to determine whether the supervisor is healthy: * That the update cycle has run fully, in a time that's less than twice the poll interval. Unless we're downloading an image, in which case we assume it's healthy (otherwise we'd get into the issue of determining a reasonable timeout for the image download, which is already done in a configurable way with delta options and the like). * That the current state report to the Resin API hasn't failed more than 3 times. Unless the device has no connectivity, or the connectivity check is disabled, in which case we don't know if the report failed simply because there's no network. * That the gosuper component is working (since we periodically hit its API to get the IP addresses, we mark it as not working if this API call fails). We need this endpoint to be unauthenticated for the docker daemon to be able to hit it (though, as the rest of the API, it is protected with iptables rules). Change-Type: minor Signed-off-by: Pablo Carranza Velez <pablo@resin.io> |
||
---|---|---|
.. | ||
API.md | ||
dependent-apps.md | ||
update-locking.md |