Repository navigation
TOC-83 Multi-location checks with a quorum - #66
Merged
Merged
Conversation
Claude-Session: https://claude.ai/code/session_01Ub1Bi7sFncPnpe2Cz4azBE Signed-off-by: Christian Jensen <christian@closient.com>
Claude-Session: https://claude.ai/code/session_01Ub1Bi7sFncPnpe2Cz4azBE Signed-off-by: Christian Jensen <christian@closient.com>
Claude-Session: https://claude.ai/code/session_01Ub1Bi7sFncPnpe2Cz4azBE Signed-off-by: Christian Jensen <christian@closient.com>
Claude-Session: https://claude.ai/code/session_01Ub1Bi7sFncPnpe2Cz4azBE Signed-off-by: Christian Jensen <christian@closient.com>
Claude-Session: https://claude.ai/code/session_01Ub1Bi7sFncPnpe2Cz4azBE Signed-off-by: Christian Jensen <christian@closient.com>
…-83) Anonymous outage reads (the API, the timeline, MCP) drop a quorum check's per-node outages, so one node down while the quorum says up never shows on public surfaces. A status:read token and the internal board still see every node's. The admin timeline names * as a quorum of nodes. Claude-Session: https://claude.ai/code/session_01Ub1Bi7sFncPnpe2Cz4azBE Signed-off-by: Christian Jensen <christian@closient.com>
…OC-83) Claude-Session: https://claude.ai/code/session_01Ub1Bi7sFncPnpe2Cz4azBE Signed-off-by: Christian Jensen <christian@closient.com>
Claude-Session: https://claude.ai/code/session_01Ub1Bi7sFncPnpe2Cz4azBE Signed-off-by: Christian Jensen <christian@closient.com>
…es (TOC-83) Serve and reload both add the liveness heartbeats through watch, so this pins the quorum ones there. Claude-Session: https://claude.ai/code/session_01Ub1Bi7sFncPnpe2Cz4azBE Signed-off-by: Christian Jensen <christian@closient.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checks placed on two or more nodes are now quorum checks: each node's run is evidence, and a node whose results all converge (its own and every other node's, through
push_to) derives the check's health from the freshest result per node and records it undernode_id = '*'.What changed
nodesandquorumon[[check]]. A check on two or more nodes is a quorum check, needing its ownquorumor a majority. Validation refuses a quorum check no node can evaluate, and several evaluators without[federation] alert_order.state::quorum_healthtakes each node's latest result inside the freshness window (2 × interval + push_interval + grace). It returns the health a quorum agrees on, or none.*results and opens and closes*outages, which alert like any other. Per-node runs are evidence only and never alert. A node that runs the check without evaluating it is quiet.quorum:<check>heartbeat. It is pinged up while the quorum can decide and down while it cannot, so losing the quorum alerts and later resolves. It has no component, so it shows on the internal board only. Serve and reload both add it.alert_ordergating: an evaluator behind others alerts only when every node ahead is down. A missing heartbeat for a node ahead counts as not up. An outage opened without an alert stays unalerted.*say "on a quorum of nodes".*evaluations per day. Days from before the check became a quorum check keep their per-node rollups./api/v1/outages, the timeline and MCPlist_outagesshow only a quorum check's*outages.status:readtoken and/internal/still see every node's outages, so the internal view keeps matching Gatus.Acceptance tests
crates/tocsin-engine/tests/quorum.rscovers four cases:*outage and one alert.tocsin-corestate.rshas a property test: a stale node never changes the derived health.*outages for a quorum check, and that a reader token sees every node's.liveness_testschecks thatwatch(used at serve and at reload) addsquorum:<check>.Deviations and notes
*evaluation rollups, not from*outages weighted by time as the ticket worded it. The design doc (docs/design/federation.md) was updated on purpose to match what shipped, including the freshness formula. Treat that as a reconciliation, not drift.[federation] default_nodes, becomes a quorum check. It then stops alerting per node, and the config is refused if no node can evaluate it. The deployed Closient config has no[federation], so nothing changes there today.liveness_testsandpush_testsfixtures changed. Theapi-portcheck in the federation tests now runs on hub and spoke, which makes it a quorum check.*state for a quorum check, because it never evaluates one.Engine::reconcileandRouter::neweach had a helper split out.https://claude.ai/code/session_01Ub1Bi7sFncPnpe2Cz4azBE