R178 · Infrastructure for agents at scale › Developer infrastructure under agent load

Ready is not healthy: detect, mitigate and keep evidence for bad Kubernetes nodes

Read the original

Authors ClickHouse, Roopa Tangirala (shared)

infrastructurereliabilitykubernetesvendor

Sources: ClickHouse engineering blog, "Detect, act, keep the evidence: node reliability across three clouds", Nov 2026; Roopa Tangirala's LinkedIn post; github.com/ClickHouse/node-problem-mitigator. First-hand operator write-up from the vendor's own SRE team.

The claim in one paragraph

At thousands of Kubernetes nodes across AWS, GCP and Azure, a node with a failed disk, a stuck kernel task or a half-working network is a daily event, and most such failures do not look like node failures: Kubernetes still says Ready and the cloud console says running. ClickHouse decided to own both detection and reaction rather than rely on each cloud's differing auto-repair. The system has three parts: Node Problem Detector as the sensor, their open-source Node Problem Mitigator as the actuator, and a Node Debug Collector that captures evidence before the node is gone.

The incident that started it

One of two NVMe drives behind a software RAID 0 array on an EC2 node failed. The kernel logged the missing member followed by a stream of EXT4 and I/O errors, and ClickHouse pods on the node failed writes for a long time. No data was lost and nobody was paged, because the Node object stayed Ready and the provider never flagged the instance. Node Problem Detector was running and had matched the EXT4 errors, but the upstream rule is marked temporary: it emits an Event that expires after an hour and sets no Node condition, so nothing reacted.

Architecture

Why not existing tools

The post surveys the alternatives: Medik8s operators (capable but a long chain of custom resources and DaemonSets), Draino (abandoned, drain only), Cluster API MachineHealthChecks (too large a change), node-readiness-controller with descheduler (loose coupling where a misconfigured descheduler leaves nodes tainted but never drained, and no control over termination), and Karpenter auto-repair (AWS-only). Their underlying point: the threshold for killing a node depends on workload statefulness, how well the software honors PDBs and SIGTERM, and the operators' risk appetite, so termination resists standardization.

Per-cloud behavior also differed. On AWS they had disabled auto-repair because a disk heuristic kept flagging healthy nodes, and repair was usually an in-place reboot that often left the same fault. GCP ships its own NPD with many custom checks. Kubernetes v1.37 Lifecycle Conditions help partly but were not production-ready for them.

Tradeoffs

Failure modes to expect

Review checklist for automated node remediation

  1. Do the failures you care about set durable Node conditions, not hour-long events?

  2. Is detection separated from action, so the actuator never judges health itself?

  3. Does each condition have an explicit escalation ladder that starts in dry-run?

  4. Is there a kill switch, a global rate limit and an exclusion list?

  5. Do drains have timeouts, and is termination explicit?

  6. Is evidence captured before mitigation, without blocking it?

  7. Is behavior the same across clouds, and is provider auto-repair either trusted deliberately or turned off?

Connections

See R178 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.