Repository navigation
TOC-110 Spokes outside alert_order leave their own outages to it - #67
Merged
Merged
Conversation
…C-110) A node left out of a non-empty [federation] alert_order no longer routes its own checks' and configured heartbeats' outages: it stores and pushes them as alert-worthy, and the nodes in the list page for them, so one outage pages once. It keeps paging for node:, upstream: and quorum: subjects, which no other node pages for. The gate lives in AlertingHistory::record, not Router::routing, which the hub uses for remote outages. Alerts a node opened for its own outages before it left the list end with ended_by = config at start and at reload, queueing their resolves; fire_alerts would otherwise re-fire them on every change. Claude-Session: https://claude.ai/code/session_01Ub1Bi7sFncPnpe2Cz4azBE Signed-off-by: Christian Jensen <christian@closient.com>
No validation requires a node outside alert_order to push to a node in it, and one that pushes nowhere would otherwise page for its own outages nowhere. Such a node keeps paging for its own. The two-store test now also pushes a configured heartbeat and asserts the hub pages for it. 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.
What
A node left out of a non-empty
[federation] alert_orderthat pushes (push_to) to a node in the list no longer pages for its own checks and configured heartbeats. It still stores each outage as alert-worthy and pushes it; the nodes in the list page for it from the push, so one outage pages once instead of twice.node:<id>,upstream:<id>) andquorum:checks. This mirrors the hub's receiver rule (it pages for a pushed outage only when its id has no:), so nothing falls between the two.AlertingHistory::record, viaRouter::leaves_to_alert_order. Not insideRouter::routing, which the hub also uses for remote outages.ended_by = configat start and at reload, and its resolve goes out. Without this,fire_alertsre-fires every open alert on each change.Tests
In
push_tests.rs:upstream:hubstill alerts on the spoke, and the hub fires exactly one alert for each.alert_order = ["spoke","hub"], noalert_order, and outside the list with nopush_to.config, andupstream:hubstays open.Mutation-checked. Each of these turns a test red:
:rulepush_toconditionDocs:
alerting.md,design/federation.md, thealert_orderrow inconfig.md, and the regenerated schema and config reference.https://claude.ai/code/session_01Ub1Bi7sFncPnpe2Cz4azBE