balena-os / balena-supervisor

Balena Supervisor: balena's agent on devices.
https://balena.io
Other
149 stars 63 forks source link

Document the usage of healthdog/watchdogs in the Supervisor #1574

Open 20k-ultra opened 3 years ago

20k-ultra commented 3 years ago

The Supervisor has a /v1/healthy endpoint used for performing healthchecks. This endpoint is used in the following known places:

Slight confusion is drawn to the fact that the engine and systemd are monitoring the Supervisor. Are these both required ?

Internal discussion: FD thread

20k-ultra commented 3 years ago

We should try to document the reasoning for the settings used in the watchdogs too. For example the systemd one has values such as:

Restart=always RestartSec=10s WatchdogSec=180

and the Dockerfile:

--interval=5m --start-period=1m --timeout=30s --retries=3