mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 17:11:30 +00:00
ae800386fb
Wire crash detection and host-resource signals through to the AWS-faithful DescribeInstanceStatus API and the spx CLI, closing out the EC2 health monitoring / self-healing work. Phase C — QMP health monitoring: - qmpHeartbeat now tracks consecutive query-status failures; at QMPMaxConsecutiveFailures it checks process liveness, triggering HandleCrash on a dead QEMU and marking an alive-but-wedged process impaired. - InstanceHealthState gains QMPConsecutiveFailures, LastQMPSuccess, ImpairedSince. Phase E — DescribeInstanceStatus mapping: - buildInstanceStatus maps running VMs to ok / impaired (QMP-unresponsive, with ImpairedSince) / initializing (2-min launch grace), non-running to not-applicable. - SystemStatus reflects node memory pressure via ResourceManager HostUnderMemoryPressure (live MemAvailable below the host reserve). Phase C2 — observability: - spx get vms gains HEALTH and CRASHES columns derived from vmHealthLabel. Tests cover crash/QMP helpers, status mapping, memory-pressure system status, and the health label.