Skip to content

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

Datadog Engineering 21 min read Incident hardMaster

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

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.

Related posts

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

    Datadog Engineering hardMaster

    A Datadog multi-region, multi-cloud outage was traced to a systemd security patch auto-installed by Ubuntu's unattended-upgrades on 22.04 hosts. The patch restarted systemd-networkd, whose v248+ behavior flushes foreign IP routing rules. That flush deleted the source-routing rules Cilium installs for pod traffic on AWS and Azure ENIs, cutting pods off. It also deleted Cilium's relocated priority-100 'lookup local' rule without restoring the default priority-0 rule, so nodes on every cloud lost network connectivity entirely. Because the unattended-upgrade timers fired in the same daily window everywhere, the change bypassed Datadog's progressive, region-by-region node replacement process; the ManageForeignRoutingPolicyRules setting can turn off the flush.

  • 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.

  • 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.

  • Clouds, caches and connection conundrums

    incident.io mediumAdept

    After migrating to Google Cloud, sporadic Postgres and memcached connection timeouts on GKE turned out to be node-wide, not process-local. Bursts of rapidly opened TCP connections, from concurrent cache sets, GCS URL generation and a runaway query fanning out external calls, spiked CPU in the Dataplane V2 anetd agent and caused dropped packets. Partial mitigations helped: static Postgres pools with a longer connection lifespan cut new connections from ~200/s to ~1/s, and raising memcache MaxIdleConns from 2 to 20 also reduced timeouts. The lasting fix is connection reuse plus limits on outbound network concurrency rather than disabling Dataplane V2. Network timeouts should be investigated at the node level, not just per pod.

  • A Recap on May/June Stability

    Neon mediumAdept

    Neon's May and June 2025 incidents were caused by a load surge from agentic AI platforms. Database creation rose more than 5x and branch creation more than 50x. In May, US regions hit Kubernetes scaling limits around 10,000–12,000 concurrent database pods: EKS etcd memory, pod start times, network configuration and API rate limits. Stopgap tuning raised risk until the horizontally scaled "Cells" architecture shipped. In June, branch metadata growth in the Postgres-backed control plane caused query plan drift, vacuum pressure and expensive billing queries. Fixes include stricter limits on every workload dimension, tests with high-branch-count scenarios, defensive query rewrites, moving billing data to an analytical store, and splitting start/suspend hot-path logic into a small isolated service.

The quest for software engineering knowledge.

Look:
Layout: