Repository navigation
feat(ops): install the self-healing host health monitor - #53
Merged
Merged
Conversation
Promotes the reviewed draft to scripts/check_system_health.py (it was kept in docs/drafts so root's cron would not pick it up before the containers had healthchecks). Adds mount, Docker-health, restart-count, per-container OOM, systemd-service, backup-age and Prefect DB-size checks, restarts unhealthy containers with a budget of 3 per 6 hours, matches container names exactly, restarts prefect-server through systemd, replaces the permanently-tripped "swap > 60%" alert with swap-in rate, and adds --dry-run. Already installed on the Pi and running from cron; its tests (server/tests/test_health_script.py) now exercise this file directly. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Deploying travelnet with
|
| Latest commit: |
14b2289
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://9a3f1935.travelnet.pages.dev |
| Branch Preview URL: | https://ops-install-health-monitor.travelnet.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Promotes the reviewed draft of the host health monitor to
scripts/check_system_health.py. It is already installed and running on the Pi (root's cron, first real run 09:15 UTC: all checks ran, 0 alerts); this PR makesmainmatch.prefect-serverunit) with a budget of 3 per 6 hours per container.travelnetas running whenevertravelnet-nginxwas);prefect-serveris restarted through systemd; the permanently-tripped "swap > 60 %" alert is replaced by swap > 90 % plus swap-in rate.--dry-runmode, and state kept in/var/tmpso it survives reboots.docs/drafts/.server/tests/test_health_script.py(26 tests) now runs against this file directly.Note for the Pi
The Pi's working tree already contains this exact file as an uncommitted change. After merging, run
git checkout -- scripts/check_system_health.py && git pull --ff-only.🤖 Generated with Claude Code