Watchdogs/ folder + host conf rename
Move all watchdog scripts to a dedicated Watchdogs/ folder: Docker_Essentials/docker_watchdog.sh → Watchdogs/ unRAID_Essentials/system_watchdog.sh → Watchdogs/ unRAID_Essentials/resource_watchdog.sh → Watchdogs/ Orchestrators/watchdog_orchestrator.sh → Watchdogs/ Tools/watchdog_skip_list_manager.sh → Watchdogs/ Rename host config files: master_host1.conf → host1.conf master_host2.conf → host2.conf Update all references across the ecosystem: master.conf: WATCHDOG_ORCHESTRATOR_SCRIPTS paths → Watchdogs/ load_config.sh: host*.conf glob + all comments git_pull_execute.sh: sparse checkout glob + all comments Partnership/ssh_setup.sh: HOST_CONF path construction user_script_plug-in.sh: all script paths + per-host conf path common.sh, README.md, README-User_Script_Plug-in.md: comment refs All Partnership, Fallback, Monitors, Transcodes, Tools scripts: comment refs
This commit is contained in:
@@ -10,7 +10,7 @@ For per-script detail see the script headers directly.
|
||||
|
||||
## ━━━ WATCHDOG CONFIGURATION ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
All watchdog configuration lives in `master_host*.conf` (per-container lists) and
|
||||
All watchdog configuration lives in `host*.conf` (per-container lists) and
|
||||
`master.conf` (shared thresholds and toggles). `detect_hosts()` aliases all
|
||||
`HOST1_` / `HOST2_` prefixed vars to their unprefixed names at runtime — scripts
|
||||
always read the right values for the server they're running on.
|
||||
@@ -20,7 +20,7 @@ always read the right values for the server they're running on.
|
||||
### ── Memory Hard Limits ────────────────────────────────────────────────────────
|
||||
|
||||
```bash
|
||||
# master_host1.conf
|
||||
# host1.conf
|
||||
# Format: "ContainerName:LimitInMB"
|
||||
# Immediate restart when exceeded — no strike system. Memory leaks are not spikes.
|
||||
#
|
||||
@@ -71,7 +71,7 @@ CPU_FAIL_LIMIT=2 # consecutive strikes before restart
|
||||
### ── HTTP Health Checks ────────────────────────────────────────────────────────
|
||||
|
||||
```bash
|
||||
# master_host1.conf
|
||||
# host1.conf
|
||||
# Format: "ContainerName:http://host:port/optional-path"
|
||||
# Hits the actual service endpoint on every watchdog cycle.
|
||||
# "Container running" and "service responding" are not the same thing.
|
||||
@@ -98,7 +98,7 @@ RESP_FAIL_LIMIT=2 # consecutive failures before restart
|
||||
### ── Required Containers ───────────────────────────────────────────────────────
|
||||
|
||||
```bash
|
||||
# master_host1.conf
|
||||
# host1.conf
|
||||
# Containers that must always be running.
|
||||
# Found stopped → watchdog attempts restart every cycle until running or skip-listed.
|
||||
# Uses the STRIKE SYSTEM — one miss might be mid-restart.
|
||||
@@ -119,7 +119,7 @@ HOST1_WATCHDOG_REQUIRED_CONTAINERS=(
|
||||
### ── Dependency Ordering ───────────────────────────────────────────────────────
|
||||
|
||||
```bash
|
||||
# master_host1.conf
|
||||
# host1.conf
|
||||
# Format: "DependentContainer:dependency1 dependency2"
|
||||
# Multiple dependencies space-separated. All must be running before dependent restarts.
|
||||
#
|
||||
@@ -245,7 +245,7 @@ WATCHDOG_BATCH_NOTIFY=true
|
||||
### ── Daily Restart List ───────────────────────────────────────────────────────
|
||||
|
||||
```bash
|
||||
# master_host1.conf
|
||||
# host1.conf
|
||||
# Restarted every night at 1am via daily_sync_maintenance.sh.
|
||||
#
|
||||
# Good candidates:
|
||||
@@ -271,7 +271,7 @@ their images updated daily before the restart. Add a container once, it gets bot
|
||||
### ── Weekly Restart List ──────────────────────────────────────────────────────
|
||||
|
||||
```bash
|
||||
# master_host1.conf
|
||||
# host1.conf
|
||||
# Restarted every Sunday at 2:30am via weekly_sync_maintenance.sh.
|
||||
# Runs AFTER the sync window's own restart of critical containers (Emby, auth stack).
|
||||
#
|
||||
@@ -291,7 +291,7 @@ HOST1_WEEKLY_RESTART_CONTAINERS=(
|
||||
## ━━━ NETWORK CONFIGURATION ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
```bash
|
||||
# master_host1.conf
|
||||
# host1.conf
|
||||
# Networks to ensure exist + containers to connect to each network.
|
||||
# Many-to-many: every container connects to every network listed.
|
||||
#
|
||||
@@ -339,7 +339,7 @@ Everything gets updated at least once per week with no explicit configuration.
|
||||
|
||||
## ━━━ FULL CONFIGURATION REFERENCE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
### ── master_host*.conf ────────────────────────────────────────────────────────
|
||||
### ── host*.conf ────────────────────────────────────────────────────────
|
||||
|
||||
```bash
|
||||
# Per-host — varies between HOST1 and HOST2
|
||||
@@ -425,11 +425,11 @@ SLEEP=5 # seconds between retry attempts
|
||||
|
||||
### ── Adding a Container to Monitoring ────────────────────────────────────────
|
||||
|
||||
Adding a container is purely additive — add the relevant lines to `master_host*.conf`.
|
||||
Adding a container is purely additive — add the relevant lines to `host*.conf`.
|
||||
No script changes. `detect_hosts()` picks up the new config on the next watchdog cycle.
|
||||
|
||||
```bash
|
||||
# master_host1.conf — example: adding "MyApp" to full Tier 1 + daily restarts
|
||||
# host1.conf — example: adding "MyApp" to full Tier 1 + daily restarts
|
||||
|
||||
# 1. Memory hard limit — size at ~150-200% of normal peak (check: docker stats MyApp)
|
||||
HOST1_WATCHDOG_CONTAINERS=(
|
||||
|
||||
Reference in New Issue
Block a user