carlos / platform Public

group-capacity-damping

Damp the HA group-capacity alarm (agent manager 8a3d302; Paul approved 2026-11-11).

<name>-group-capacity ("InService < desired") changes from 1 of 1 x 60 s to 5 of 5 x 60 s. The metric math, threshold, missing-data handling (breaching) and actions are unchanged. The description and comment say why.

Evidence: alarm history from 2026-11-04 to 11-11 shows 76 ALARM/OK pairs, 54 on carlos-dev-ie-group-group-capacity and 22 on carlos-flagship-us-ha-group-capacity. Every one cleared in 1 or 2 minutes and none lasted over 3; they are planned member launches (rolls, Standby returns, replacements). A 5/5 window would have silenced all 76.

What this does to real-failure paging:

  • The alarm now needs 5 consecutive breaching one-minute periods instead of 1: about 4 periods later for the same data. A period breaches when the group is short OR an ASG input is missing, because FILL turns a late or missing sample into a breach. So 5 periods that mix real shortfall and missing data also alarm, and a late sample can delay the clear. ASG metric latency sits inside that window; it is not added on top.
  • A group that stays short (a member that never reaches InService, a lost member not replaced) still pages, about 4 minutes later than before.
  • Launch failures still notify through the EventBridge launch-unsuccessful rule, unchanged. That path is best effort and adds no window. A launch held in the 900 s lifecycle hook is not necessarily reported as unsuccessful straight away.
  • The trade-off: a shortfall that clears within any 5 periods (for example a member flapping in and out of service) no longer pages from this alarm. The ingress NLB alarms (10/10 unhealthy, 25/25 below the expected healthy count) remain, but neither catches repeated brief flaps.
  • The alarm description is the approved copy, kept verbatim; only the code comment explains the window.
  • The P3 plan allowed initial launches to alert and said "never suppress it for 25m"; 5 minutes is well inside that.

Supersession notes are in the two P3 plans that specified 1/1.

Tests: tests/group_alarms.tftest.hcl asserts the 5/5 window. That file uses keyed override targets, which the local tofu 1.12.5 rejects, so it was run from a scratch copy with the keyed EIP overrides un-keyed and the one EIP-match precondition relaxed. Results: main 4/4 and branch 4/4; the branch test against main's module fails on the capacity assertion. CI does not run tofu tests. Census proposal included.

Commits 5
Discussions 0 0 open
Tasks 0/0 done

Discussions

  • No discussions on this branch yet.

Tasks

  • No tasks yet.

Activity