[Future] Rack/switch-aware failure domains: rack-down and dual-homed failover alerting #36

Open
opened 2026-11-08 23:46:54 -05:00 by jared · 0 comments
Owner

Status: future / not actionable yet

The current network has one of everything: 1 router, 1 PoE switch, and 1 aggregation switch for Ceph, all in a single rack. Every network component is therefore a single point of failure, and a "rack down" is the same event as "everything down". It is what it is for now. This issue records what to design once there is more than one rack and more than one switch per rack.

Builds on #35 (one ticket per down host, one P1 for multiple hosts down).

Scenarios to handle later

1. Rack down / rack isolated

A whole rack loses power or its uplinks.

  • Map hosts to racks (config, or the Ceph CRUSH rack buckets once they exist).
  • When every host in a rack is down, or unreachable from the other racks, open one P1 Rack <name> DOWN/ISOLATED ticket. Don't open per-host or multi-host tickets for it.
  • Tell down apart from isolated: a rack that is powered and still talks to itself but has lost its uplink is a split-brain risk. The ticket should say which (local IPMI/PDU status vs. cross-rack reachability).
  • Include quorum impact (corosync + Ceph mon placement) and data impact (PGs whose replicas all sit in that rack).

2. Top-of-rack switch failure with dual-homed hosts

With 2 ToR switches per rack and each host bonded across both (LACP/MLAG or active-backup):

  • Losing one switch should not mark hosts down. It should open one P2 Switch <name> DOWN, rack <x> running on single path ticket: redundancy lost, no outage.
  • Detect a degraded bond per host (one bond slave down) and roll it up into the switch ticket, not one ticket per host or per NIC.
  • If both switches in a rack fail, escalate to scenario 1.

3. Router / core failure

  • With redundant routers (VRRP/keepalived or similar), alert on failover events and loss of redundancy (P2), not on reachability symptoms.
  • Internet/WAN loss should be one ticket, separate from cluster health.

4. Ceph failure domains

  • Once racks exist, move CRUSH rules from host to rack failure domain so a rack loss doesn't take PGs inactive.
  • Alert when the CRUSH topology can no longer meet the rule (e.g. size=3 with only 2 racks up).

Alert hierarchy (target)

Each level suppresses everything below it while it is active:

Site down
  └─ Rack down / isolated (P1)
       └─ Multiple hosts down (P1)      ← #35
            └─ Host down (P1/P2)        ← #35
                 └─ OSD / mon / PG / service symptoms (folded into parent)
Switch / router redundancy lost (P2, no outage)
  └─ Bond slave / NIC / link symptoms (folded into parent)

Prerequisites (hardware)

  • 2nd rack, or at least a 2nd power circuit/PDU
  • 2 switches per rack (ToR pair), plus redundant aggregation for the Ceph network
  • Redundant router/gateway
  • Hosts dual-homed (bonded NICs across both switches)

Related

  • #35: host-down aggregation
  • Gandalf (network monitor) would likely own switch/link/bond detection, while hwmonDaemon owns host/Ceph. The two need a shared view of "what's down" so suppression works across both tools.
## Status: future / not actionable yet The current network has **one of everything**: 1 router, 1 PoE switch, and 1 aggregation switch for Ceph, all in a single rack. Every network component is therefore a single point of failure, and a "rack down" is the same event as "everything down". It is what it is for now. This issue records what to design once there is more than one rack and more than one switch per rack. Builds on #35 (one ticket per down host, one P1 for multiple hosts down). ## Scenarios to handle later ### 1. Rack down / rack isolated A whole rack loses power or its uplinks. - Map hosts to racks (config, or the Ceph CRUSH `rack` buckets once they exist). - When every host in a rack is down, or unreachable from the other racks, open **one P1 `Rack <name> DOWN/ISOLATED`** ticket. Don't open per-host or multi-host tickets for it. - Tell **down** apart from **isolated**: a rack that is powered and still talks to itself but has lost its uplink is a split-brain risk. The ticket should say which (local IPMI/PDU status vs. cross-rack reachability). - Include quorum impact (corosync + Ceph mon placement) and data impact (PGs whose replicas all sit in that rack). ### 2. Top-of-rack switch failure with dual-homed hosts With 2 ToR switches per rack and each host bonded across both (LACP/MLAG or active-backup): - Losing one switch should **not** mark hosts down. It should open one **P2 `Switch <name> DOWN, rack <x> running on single path`** ticket: redundancy lost, no outage. - Detect a degraded bond per host (one bond slave down) and roll it up into the switch ticket, not one ticket per host or per NIC. - If both switches in a rack fail, escalate to scenario 1. ### 3. Router / core failure - With redundant routers (VRRP/keepalived or similar), alert on failover events and loss of redundancy (P2), not on reachability symptoms. - Internet/WAN loss should be one ticket, separate from cluster health. ### 4. Ceph failure domains - Once racks exist, move CRUSH rules from `host` to `rack` failure domain so a rack loss doesn't take PGs inactive. - Alert when the CRUSH topology can no longer meet the rule (e.g. size=3 with only 2 racks up). ## Alert hierarchy (target) Each level suppresses everything below it while it is active: ``` Site down └─ Rack down / isolated (P1) └─ Multiple hosts down (P1) ← #35 └─ Host down (P1/P2) ← #35 └─ OSD / mon / PG / service symptoms (folded into parent) Switch / router redundancy lost (P2, no outage) └─ Bond slave / NIC / link symptoms (folded into parent) ``` ## Prerequisites (hardware) - 2nd rack, or at least a 2nd power circuit/PDU - 2 switches per rack (ToR pair), plus redundant aggregation for the Ceph network - Redundant router/gateway - Hosts dual-homed (bonded NICs across both switches) ## Related - #35: host-down aggregation - Gandalf (network monitor) would likely own switch/link/bond detection, while hwmonDaemon owns host/Ceph. The two need a shared view of "what's down" so suppression works across both tools.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/hwmonDaemon#36