fix(agent): align failover with configured heartbeat intervals #87

Merged
arnaud.dartois merged 7 commits from fix/heartbeat-aware-failover into main 2026-10-25 03:21:29 +01:00
Owner

What changed

  • Derive offline thresholds from the global or per-agent heartbeat interval, with a scheduler grace period.
  • Make the failover job own the stale-to-offline transition and remove the competing legacy heartbeat monitor schedule. Retry failover for offline agents that still own enabled cameras.
  • Enforce the Agent-supported 5–300 second interval in settings and restore the global interval when an override is removed.
  • Normalize invalid stored/environment heartbeat intervals during startup.

Validation

  • git diff --check passed. CI is queued for build, tests, and image scans. No local tests were run.
## What changed - Derive offline thresholds from the global or per-agent heartbeat interval, with a scheduler grace period. - Make the failover job own the stale-to-offline transition and remove the competing legacy heartbeat monitor schedule. Retry failover for offline agents that still own enabled cameras. - Enforce the Agent-supported 5–300 second interval in settings and restore the global interval when an override is removed. - Normalize invalid stored/environment heartbeat intervals during startup. ## Validation - `git diff --check` passed. CI is queued for build, tests, and image scans. No local tests were run.
arnaud.dartois added 1 commit 2026-10-25 02:55:38 +02:00
fix(agent): align failover with heartbeat intervals
Heimdall Gitea / Build and tests (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan server image (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan agent image (pull_request) Canceled after 0s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Canceled after 0s
Heimdall Gitea / Publish versioned release (pull_request) Canceled after 0s
8d5447f826
arnaud.dartois added 1 commit 2026-10-25 02:56:24 +02:00
docs(agent): describe heartbeat failover policy
Heimdall Gitea / Build and tests (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan server image (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan agent image (pull_request) Canceled after 0s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Canceled after 0s
Heimdall Gitea / Publish versioned release (pull_request) Canceled after 0s
aea3b46f68
arnaud.dartois added 1 commit 2026-10-25 02:58:10 +02:00
fix(agent): wake heartbeat loop when interval changes
Heimdall Gitea / Build and tests (pull_request) Failing after 4m55s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
d543eced8d
arnaud.dartois added 1 commit 2026-10-25 02:08:14 +01:00
fix(agent): use a lightweight heartbeat change signal
Heimdall Gitea / Build and tests (pull_request) Failing after 6m5s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
3d871b72ac
arnaud.dartois added 1 commit 2026-10-25 02:18:55 +01:00
test(agent): use supported stale heartbeat threshold
Heimdall Gitea / Build and tests (pull_request) Successful in 17m24s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / Build and scan server image (pull_request) Successful in 6m43s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan agent image (pull_request) Canceled after 3m26s
b41d8d3910
arnaud.dartois added 1 commit 2026-10-25 02:20:02 +01:00
docs(agent): clarify heartbeat failover validation
Heimdall Gitea / Build and tests (pull_request) Successful in 14m35s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / Build and scan server image (pull_request) Successful in 7m17s
Heimdall Gitea / Build and scan agent image (pull_request) Successful in 9m0s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
f310fe0ebf
arnaud.dartois added 1 commit 2026-10-25 03:20:38 +01:00
docs(agent): record heartbeat failover validation
Heimdall Gitea / Build and scan server image (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan agent image (pull_request) Canceled after 0s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Canceled after 0s
Heimdall Gitea / Publish versioned release (pull_request) Canceled after 0s
Heimdall Gitea / Build and tests (pull_request) Canceled after 49s
e9c61e6431
arnaud.dartois merged commit fddea09928 into main 2026-10-25 03:21:29 +01:00
arnaud.dartois added the area:agentarea:monitoringpriority:P2type:bug labels 2026-11-06 13:41:18 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: arnaud.dartois/Heimdall#87