Skip to content

Planned llama restarts opt-in; failsafe watchdog; single instance - #15

Merged
ChakraFusion merged 1 commit into
mainfrom
fix/planned-restarts-opt-in
Oct 6, 2026
Merged

ChakraFusion merged 1 commit into
mainfrom
fix/planned-restarts-opt-in

Conversation

@ChakraFusion

Copy link
Copy Markdown
Owner

Follow-up to the 2026-10-05 overnight outage.

  • Planned restarts opt-in: only when llama_kill_degraded is on and the average decode speed is below llama_kill_tps; the time cadence defaults to off (0). A dead or unresponsive server is always started again.
  • Failsafe: hawk ensure starts a stopped Hawk (cleanly, never twice) and a llama-server that stays down for two checks; hawk install-watchdog runs it every 2 minutes via Task Scheduler (pythonw, no window) or cron.
  • One instance only: OS file locks for the monitor, the dashboard and every llama-server start; the alive check is repeated under the lock, so racing starts cannot produce two servers.

Tests: planned_due, ensure failsafe, single-instance lock across processes; all suites green locally.

🤖 Generated with Claude Code

…ama-server only

Incident 2026-10-05: Hawk restarted llama-server on a fixed cadence (every 3.5 h)
without any switch, and after Hawk itself died nothing was left to bring either
back.
- planned restarts only when llama_kill_degraded is on and the average decode
  speed is below llama_kill_tps; no time cadence by default (0); a dead server
  is always started again
- hawk ensure / hawk install-watchdog: Task Scheduler (pythonw, every 2 min) or
  cron starts a stopped Hawk and a llama-server down for two checks
- OS file locks: one monitor, one dashboard, one llama-server start at a time
  (the alive check is repeated under the lock)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ChakraFusion
ChakraFusion merged commit 5dc9381 into main Oct 6, 2026
8 checks passed
@ChakraFusion
ChakraFusion deleted the fix/planned-restarts-opt-in branch October 6, 2026 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant