Slack’s Incident on 2-22-22
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.
Related posts
- The Query Strikes Again
Slack Engineering mediumAdeptA customer's bulk removal of users triggered Slack's "forget user" async job, which fanned out into a huge number of "leave channel" jobs. These hammered a single Vitess shard holding 6% of thread-subscription data. Replication lag and OOM-killed MySQL primaries caused a promote-replace loop, because new replicas could not catch up from backup under the write load and automation deprovisioned them as unhealthy. Mitigations were manually provisioning larger replicas, scoping the job's queries and UPDATEs to the single channel being left, skipping client notifications for deactivated users, and temporarily disabling Thread View. Long-term fixes include fixing the replacement edge case, adding query throttling and circuit breakers (with contributions upstream to Vitess), and restructuring the job to avoid per-channel fan-out.
- 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.
- Postmortem: Service disruptions on June 6 & 7 2022
Figma mediumAdept
Four Figma outages over June 6–7, 2022 were caused by Engine CPU saturation on a Cluster-Mode Enabled AWS ElastiCache Redis node, triggered by Pub/Sub traffic flowing over the Redis Cluster Bus. The Cluster Bus's outgoing buffer grows exponentially when sends fall behind any node, and each partial send truncates it via sdsrange/memmove, whose cost scales with the remaining buffer size, creating a self-reinforcing CPU spiral. Scaling up to a larger cluster made things worse because more nodes lowered the trigger threshold. Figma recovered by partitioning Redis workloads into separate clusters and moving Pub/Sub to Cluster-Mode Disabled instances, and recommends avoiding Pub/Sub on cluster-mode Redis until the bug is fixed.
- May 18 Replit downtime
Replit mediumAdeptA 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.
- 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.