mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-25 19:03:14 +01:00
LivenessService::tick() runs every second in MAIN's signals daemon (cron:cluster is the minute fallback) and judges the active nodes whose TELEMETRY flow is on by their silence: ok, suspect after 10 s, offline after cluster_offline_after_sec (30 s). The result, in tmp/cluster/health.json, is read through Core\Cluster\ClusterHealth: ServerRepository::getAll() takes server_online from it for those nodes (instead of the 90 s last_check_ago rule) and getCapacity() doubles a suspect node's weight. Each transition rewrites the servers cache and is audited. When over half of the judged nodes (at least two) fall silent together, the fleet silence guard holds every node at its last state instead of marking any offline, audits it and alerts on the Cluster Nodes page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcNdxHieZuUh3EnMUKt7zf