Skip to content

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

Render 6 min read Incident mediumAdept

Breaking down OpenAI's outage: How to avoid a hidden DNS dependency in Kubernetes

CoreDNS doesn't need the Kubernetes API server to answer queries, but it does need it to initialize. So when CoreDNS runs on control plane nodes (the kubeadm default), a control plane overload or node restart can take DNS down and break running services, as likely happened in OpenAI's outage. Render hit the same failure in 2022 after an etcd memory spike. It fixed the problem by changing tolerations so CoreDNS schedules only onto tainted worker nodes, and by moving etcd to dedicated nodes. The post also explains why telemetry daemonsets overload API servers: per-node list-pods calls bypass the cache and do consistent etcd reads. Setting resourceVersion="0" and monitoring for expensive list requests are the recommended mitigations.

Related posts

  • May 30 incident update

    Deno easyNovice

    A 70-minute Deno Deploy outage on May 30, 2022 was caused by the etcd service discovery cluster running out of memory after a network-wide load test: scale-up and scale-down generated a burst of updates, etcd daemons exceeded VM RAM, the Linux OOM killer terminated several at once, and quorum was lost. Instances then crash-looped on restart until the cluster was recreated on larger-memory VMs and services re-registered. Remediation includes bigger instances, extra etcd health checks, and alerts on etcd memory usage; no data was lost and Subhosting traffic was largely unaffected.

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

  • 2022-07-18 incident update

    Deno easyNovice

    A 65-minute outage on July 18, 2022 took down all Deno Deploy services, including subhosting, deno.com and deno.land module downloads. The etcd cluster used for service discovery reached etcd's 2GB default storage quota even though the VMs had plenty of disk, so internal load balancers could no longer find where to route isolate execution requests. Service came back after the cluster was rebuilt, a process slowed by secrets management problems and unintended co-dependencies between services. Deno plans to replace the service discovery system and improve its runbooks and incident tooling.

  • Improving DNS performance with NodeLocalDNS

    Neon mediumAdept

    Neon deployed node-local-dns as a DaemonSet across its EKS clusters running hundreds of thousands of ephemeral Postgres pods, moving the 95%+ cache-hit DNS traffic off the network and onto each node. CoreDNS p99 latency fell from ~1.5ms to 240µs and p99.9 from 10–20ms to under 2ms, while CoreDNS load dropped 97% (~2k to ~60 req/s) and now scales with node count rather than Postgres instances. The lower load exposed NXDOMAIN amplification from a bad /etc/hosts entry, which they blackholed with the CoreDNS template plugin. A race between kube-proxy installing iptables rules for kube-dns-upstream and the DaemonSet forwarding to it caused TCP timeouts, avoided by deploying the Service before the DaemonSet (or the reverse order with Cilium Local Redirect Policy).

  • It’s always DNS . . . except when it’s not: A deep dive through gRPC, Kubernetes, and AWS networking

    Datadog Engineering hardMaster

    Errors during rollouts of Datadog's metrics query service looked like DNS failures, but the root cause was VPC connection tracking saturation on AWS ENIs. Clients kept sending SYNs to deleted pods' IPs. Because Cilium had removed the pod's route and IP rule, Linux reverse path filtering treated the packets as Martian and dropped them silently, even though it was configured in loose mode. With no RST or reply, clients' gRPC reconnect logic generated around 90,000 SYNs per old IP in 90 seconds, filling the hypervisor-level VPC conntrack while the Linux conntrack stayed low. The investigation shows how ENA conntrack_allowance_exceeded metrics, VPC Flow Logs aggregated by TCP flag, and kernel route lookups exposed the interaction between NodeLocal DNSCache, Cilium ENI mode, rp_filter and gRPC clients.

The quest for software engineering knowledge.

Look:
Layout: