Skip to content

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

Slack Engineering 15 min read Incident mediumAdept

The Case of the Recursive Resolvers

Slack's third attempt to enable DNSSEC on slack.com caused a 24-hour outage for under 1% of users. A Route 53 bug produced NSEC responses for the *.slack.com wildcard record without the information validating resolvers need, so names like app.slack.com came back NODATA. The rollback made things worse: the team believed DS records at the .com zone were not cached, but resolvers cache them for up to 24 hours. Removing the DNSKEYs while DS records were still cached caused SERVFAIL until caches were flushed or expired. Lessons include testing wildcard records before rollout, understanding DS record TTLs, and noting that Terraform hid Route 53's warning about disabling signing.

Related posts

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

    Render mediumAdept

    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.

  • How recurring network maintenance exposed 6 bugs

    Jane Street Tech Blog hardMaster

    Recurring weekend network partitions caused Jane Street's Kafka relays and consumer-group monitors to segfault, leak hundreds of thousands of sockets, and crash under recovery-time TCP connection surges, and tracing them uncovered six layered bugs. Among them are an eleven-year-old glibc bug where a failed res_init leaves nscount nonzero with null nameserver pointers so the next gethostbyname segfaults in sock_eq, a UDP socket leak when bind fails with EADDRINUSE under ephemeral-port exhaustion, and a fourteen-year-old Async regression where Tcp.connect_sock's timeout no longer covers DNS resolution. The rest are a Kafka client retry loop that never aborts timed-out attempts, duplicated concurrent discovery lookups, and a job runner migration that cut file-descriptor limits eightfold. Each bug masked the next, and the glibc fix shipped upstream in 2.44.

  • Probing DNS at Cloudflare

    Cloudflare mediumAdept

    Cloudflare extended Flamingo, its Rust-based end-to-end testing framework that runs hundreds of millions of tests a day against the production edge, with a DNS module to catch slow, partial DNS failures that unit tests and health checks miss. Flamingo tests use a setup-action-response DSL, and protocol support is added as modules dispatched through strongly typed Action/ActionOutput enums. Scheduling and reporting are handled by the framework. The DNS probe continuously updates a TXT record with a timestamp and queries three authoritative nameservers and 1.1.1.1 from every data center. It asserts freshness within 90s for the authoritative servers and 600s for the resolver. These results feed SLOs whose error-budget burn rates automatically decide whether a canary release is promoted or rolled back.

  • Slack’s Incident on 2-22-22

    Slack Engineering mediumAdept

    A Consul agent rolling restart caused Mcrib, Slack's memcached control plane, to replace and flush cache nodes, dropping hit rates during peak traffic. A cache-fronted Group DM membership query hit a Vitess keyspace sharded by user, so every miss became a scatter query across all shards. Database load grew superlinearly, queries timed out, caches couldn't refill, and client retries kept the system stuck in a metastable cascading failure. Recovery required throttling client boots, fetching only missing keys, reading from replicas and later moving the query to a channel-sharded table; Mcrib's very efficiency at replacing nodes increased cache churn and worsened the outage.

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