Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 14 min read Case study mediumAdept

Detect, act, keep the evidence: node reliability across three clouds

ClickHouse Cloud owns node-failure detection and reaction itself across AWS, GCP and Azure, because many real failures leave Kubernetes nodes Ready while workloads degrade. Examples include failed NVMe RAID members, EXT4 errors, hung kernel tasks and stuck pod creation, and provider auto-repair was inconsistent or counterproductive. The stack uses upstream Node Problem Detector with custom permanent conditions and plugin checks tuned against false positives. A custom open-source Node Problem Mitigator escalates per condition from evaluate to drain to terminate, gated by a kill switch, dry-run, exclusions, a global cooldown and alerting. A Node Debug Collector built on sosreport captures forensics before the node disappears.

Related posts

  • Failure is inevitable: Learning from a large outage, and building for reliability in depth at Datadog

    Datadog Engineering mediumAdept

    A March 2023 unsupervised global update knocked out connectivity to 50–60% of Datadog's Kubernetes nodes, yet the platform appeared fully down because services were designed to stop rather than show partial data. Instead of only fixing the trigger, Datadog rebuilt for graceful degradation. Changes include persisting data at intake before acknowledging receipt, letting pipelines skip backlogs to serve live data first, retries with backoff and earlier dead-letter queues, Kubernetes PriorityClass and faster autoscaling, removing a shared Cassandra tag cache from the critical path, cluster-local Vault instances, break-glass paths around circular recovery dependencies, and automated chaos testing. The general lessons are to persist early, prioritize real-time data, avoid global control systems, and scrutinize retries and caches.

  • Auto repair for Together GPU Clusters: from GPU fault to healthy node

    Together AI mediumAdept

    Together GPU Clusters' auto repair only repairs a node when a failed health check backs it, rather than keying on Kubernetes NotReady, and attaches evidence to every repair. Detection runs on both sides of the hypervisor: DCGM, kernel-log Xid and Node Problem Detector inside the VM, and InfiniBand and host reachability on the host. Customers set per-fault consent and wait-for-idle bounds, and can plug in their own detectors such as NVSentinel via a node annotation with idempotency keys. Repairs climb an escalation ladder (reboot, reprovision, evidence-gated migration, human-only removal) behind persistence, cooldown, concurrency budgets and a circuit breaker, and vacated hosts automatically re-run fleet-entry GPU/NCCL/InfiniBand checks before returning to the pool.

  • 2023-03-08 incident: A deep dive into the platform-level recovery

    Datadog Engineering hardMaster

    Recovering from Datadog's March 8, 2023 multi-region outage, triggered by a systemd-networkd patch on Ubuntu 22.04 that cut network connectivity for nodes running Cilium, required restoring Kubernetes clusters in a strict order: parent control planes, then child control planes hosted on parent nodes, then application nodes. In EU1 (Google Cloud), impacted nodes could simply be rebooted. Scaling out to drain the backlog then hit a 15,500-instance network peering group limit and full pod subnets in three clusters, which normally run at around 40% IP usage. In US1 (AWS), Auto Scaling groups replaced tens of thousands of instances, so every node had to re-register through Vault, the Kubernetes API, and Cilium ENI/IP allocation via EC2 APIs, stressing those services and slowing the return to Ready capacity.

  • 2023-03-08 incident: A deep dive into our incident response

    Datadog Engineering mediumAdept

    Datadog's March 8, 2023 global outage, triggered by an automatic systemd upgrade that broke Kubernetes nodes across isolated regions on multiple clouds, tested an incident process built on out-of-band monitoring, senior incident-commander rotations, blameless culture and a 30-minute customer update cadence. Response was slowed by the loss of Datadog's own monitoring, intermittent failures of the incident tooling, and the assumption that isolated regions could not fail together, so diagnosing the Kubernetes node failure took over an hour. The response scaled to nearly 100 workstreams and 500-750 engineers in shifts, with workstream leads acting as untrained sub-commanders. Full infrastructure restoration took until 18:00-19:00 UTC.

  • Break Stuff on Purpose

    Slack Engineering mediumAdept

    Slack's internal Kibana cluster failed in January 2024 after running out of disk, a consequence of co-locating its Elasticsearch storage on the same hosts as the application. The rebuild exposed a nearly two-year-old unmonitored backup that failed to restore and an outdated runbook, so users' dashboards and visualizations were lost. The team added scheduled backups, checked S3 retention, rewrote runbooks, and then deliberately filled the disks on a development cluster to rehearse recovery. The drill succeeded but missed the one-hour recovery goal and surfaced missing firewall rules in infrastructure as code. A later Kubernetes migration finished with about 30 minutes of downtime, and the backup script became a CLI that restores from cloud storage with a single command.

The quest for software engineering knowledge.

Look:
Layout: