Restart Garage automatically, and alert when a Garage node is down #718

Merged
raucao merged 3 commits from chore/garage_systemd into master 2026-12-04 11:30:54 +00:00
3 Commits
Author SHA1 Message Date
raucao 7d2ba8bea5 Update nodes submodule after Cinc migration and garage converge 2026-12-04 14:34:20 +04:00
raucao f048e0d5ee Alert when a Garage node is down
Prometheus already scrapes Garage (job="garage", port 3903) but there was
no alert on up{job="garage"}, so the 2026-12-04 garage-15 outage went
unnoticed for ~1h40m. Add a critical GarageDown alert and ship it via the
cookbook.
2026-12-04 13:20:35 +04:00
raucao 887f5e271e Restart the Garage service automatically after crashes
The garage.service unit had no restart policy, so a service that died
stayed dead until it was restarted by hand. On 2026-12-04 the unit on
garage-15 (10.1.1.82) was killed by the kernel OOM killer after its block
resync loop pushed memory over the 1.9GB VM's limit; systemd left it down
for ~1h40m and the cluster saw the node as disconnected the whole time.

Set Restart=always with a 30s backoff and disable the start rate limit
(StartLimitIntervalSec=0) so systemd keeps retrying instead of giving up
after a few rapid failures. Bump the cookbook to 0.2.0 and extend the
InSpec test to assert the restart policy.
2026-12-04 13:20:32 +04:00