Restart Garage automatically, and alert when a Garage node is down #718
Labels
Clear labels
monitoring
bug
design
dev environment
docs
duplicate
enhancement
feature
good first issue
idea
invalid
kredits-1
kredits-2
kredits-3
on hold
ops
question
security
ui/ux
wontfix
Infrastructure metrics, alerts, notifications, etc.
service
discourse
Kosmos Community Forums
service
accounts
Kosmos Accounts
service
drone-ci
Kosmos Drone CI
service
email
mail.kosmos.org
service
garage
S3-compatible object storage
service
gitea
Kosmos Gitea
service
ipfs
Kosmos IPFS
service
lightning
Lightning address, lndhub, etc.
service
mastodon
kosmos.social
service
nostr
Relays, Blossom server, etc.
service
postgres
Database cluster
service
remotestorage
Portable data storage for the Web
service
wiki
Kosmos Wiki
service
xmpp
Kosmos Chat
Something is not working
Graphic/visual design
Config, builds, CI, deployment, etc.
Documentation
This issue or pull request already exists
Improving existing functionality
New functionality
Dive in, and start contributing
Something to consider
Not a bug
Small contribution
Medium contribution
Large contribution
Currently not actionable
Manual IT ops activities
Looking for an answer
All your base are belong to us
User interface, process design, etc.
This won't be fixed
release
major
release
minor
release
patch
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kosmos/chef#718
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Garage nodes were left dead after a crash because the systemd unit set no restart policy. On 2026-12-04 the garage.service 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.9 GB VM's limit; systemd left it down for roughly 1h40m and the cluster saw the node as disconnected the whole time.
This sets
Restart=alwayswith a 30s backoff and disables the start rate limit (StartLimitIntervalSec=0) so systemd keeps retrying instead of giving up after a few rapid failures, and adds a criticalGarageDownalert so a dead node pages us instead of going unnoticed.It bumps kosmos_garage and kosmos_prometheus to 0.2.0 and extends the Garage InSpec test to assert the restart policy. The root cause behind the memory pressure — a persistent, cluster-wide block resync error storm from stale block references — is out of scope here and belongs with the Garage upgrade work.
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.Rolled out and verified on all 7 Garage nodes on 2026-12-04:
garage_node; the unit updated without restarting Garage on any node.Restart=always,RestartUSec=30s,StartLimitIntervalUSec=0,OOMPolicy=stop, service active.NRestarts=1).Also converged prometheus-1:
/etc/prometheus/rules/garage.ymlis loaded (GarageDown) and all 7up{job="garage"}targets report 1.👍
Dang, we need something like
kredits-githubfor the Gitea. :/