feat(monitoring): add automatic restart of unreachable customer containers
Some customers only regain access to their NetBird web UI after a manual container restart, and until now that required someone to notice and do it by hand. The scheduler now optionally probes each customer's actual dashboard URL over HTTP(S) every poll interval (not just Docker container state, since a container can be "running" while the web UI behind it still doesn't respond) and restarts that customer's containers if it doesn't answer, gated by a per-deployment cooldown to avoid restart loops on a persistently broken customer. New system setting "Automatic Restart of Unreachable Containers" (default off) with a configurable cooldown. Every automatic restart is logged in the affected customer's own log, same as a manual restart. Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
@@ -165,6 +165,9 @@ class SystemConfigUpdate(BaseModel):
|
||||
# Master default for the NetBird client (peer) automatic-updates feature
|
||||
netbird_client_auto_update_version: Optional[str] = Field(None, max_length=50)
|
||||
netbird_client_auto_update_always: Optional[bool] = None
|
||||
# Automatic restart of unreachable customer containers
|
||||
auto_restart_unreachable_enabled: Optional[bool] = None
|
||||
auto_restart_cooldown_minutes: Optional[int] = Field(None, ge=1, le=1440)
|
||||
|
||||
@field_validator("auto_update_check_time")
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user