May 18 Replit downtime
A latent Go bug leaked RWMutex read-locks whenever a configuration kind had no handler. The first write-lock attempt, during a configuration push to all clusters at once, deadlocked every Repl VM and caused about two hours of total downtime. Recovery was slowed by liveness probes that failed open, a rollback that took two tries and reset the added capacity, and an autoscaler that ignored request volume and shrank instance groups. Fixes include fast, reliable rollbacks, staggered config rollouts with jitter, self-healing health and liveness logic, and more static analysis.
Related posts
- Data Loss: a sad tale with a happy ending
Replit mediumAdeptReplit silently lost or corrupted user repl data for months. The root cause was a combination of three things: Go's exec.Cmd connecting stdin/stdout directly to child processes, a filesystem snapshot tool that ignored rare failures in its final write(2)/splice(2) calls under heavy load, and low disk space. Together these truncated snapshot streams without raising any error. The team reverted the triggering deploy, added monitoring at suspected loss points, salvaged corrupt data on load, validated snapshot output before persisting, and ran a batch Dataflow pipeline over old repls. Afterwards they refactored snapshotting and Operational Transformation history persistence, which made repls both more reliable and faster to load.
- Break Stuff on Purpose
Slack Engineering mediumAdeptSlack'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.
- May 30 incident update
Deno easyNoviceA 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.
- Slack’s Incident on 2-22-22
Slack Engineering mediumAdeptA 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.
- Root Cause Analysis for Render's Extended Service Disruption on 3/26/24
Render mediumAdept
A faulty control-plane code change on March 26, 2024 restarted every customer and system workload on Render; a feature-flag bug had kept it from running in staging, and test infrastructure differed between environments. Stateless services and static sites recovered within about 15 minutes. Hundreds of thousands of services with attached disks (managed PostgreSQL, Redis, persistent disks) had to be detached and reattached across hosts at once, which hit internal and cloud-provider rate limits and delayed full recovery to 20:00 UTC. Fixes include higher rate limits, batched disk operations for roughly 10x throughput, least-privilege permissions for control-plane components, consistent test environments and faster, more accurate status-page updates.