---
title: "Slack’s Incident on 2-22-22"
description: "A Consul agent rolling restart caused Mcrib, Slack's memcached control plane, to replace and flush cache nodes, dropping hit rates during peak traffic."
url: "https://swe.quest/articles/slack-s-incident-on-2-22-22-7a35cde32cfb5fd8"
canonical: "https://slack.engineering/slacks-incident-on-2-22-22/"
source: "Slack Engineering"
published: "2022-04-26"
difficulty: "medium"
kind: "Incident"
reading_minutes: 12
tags: ["incident-response","caching","resilience","mysql","distributed-systems"]
---

# Slack’s Incident on 2-22-22

A post on [Slack Engineering](https://swe.quest/sources/slack.md), published 2022-04-26, 12 min read, Incident. Original: [https://slack.engineering/slacks-incident-on-2-22-22/](https://slack.engineering/slacks-incident-on-2-22-22/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [MySQL](https://swe.quest/tags/mysql.md) (Data & databases)
- [Distributed systems](https://swe.quest/tags/distributed-systems.md) (Distributed systems)

## Prerequisites

- database sharding ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))
- memcached caching ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))
- service discovery

## Keywords

Vitess, Memcached, Mcrouter, Mcrib, Consul, scatter query, metastable failures

## Related posts

- [The Query Strikes Again](https://swe.quest/articles/the-query-strikes-again-fa807954ef58b362.md): Slack Engineering · 2023-11-15 · Medium · 13 min read · Incidents & postmortems, MySQL, Resilience, Replication, Distributed databases
  A customer's bulk removal of users triggered Slack's "forget user" async job, which fanned out into a huge number of "leave channel" jobs.
- [Break Stuff on Purpose](https://swe.quest/articles/break-stuff-on-purpose-87dc2221ffb9f4a6.md): Slack Engineering · 2024-12-10 · Medium · 5 min read · Chaos engineering, Incidents & postmortems, Observability, SRE
  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.
- [Postmortem: Service disruptions on June 6 & 7 2022](https://swe.quest/articles/postmortem-service-disruptions-on-june-6-7-2022-778d04ed1a92a844.md): Figma · 2022-06-15 · Medium · 11 min read · Incidents & postmortems, Caching, Cloud platforms, Resilience, Performance engineering
  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.
- [May 18 Replit downtime](https://swe.quest/articles/may-18-replit-downtime-8ded63600c4e370b.md): Replit · 2023-05-20 · Medium · 4 min read · Incidents & postmortems, Go, Concurrency, Deployment, Configuration management
  A latent Go bug leaked RWMutex read-locks whenever a configuration kind had no handler.
- [May 30 incident update](https://swe.quest/articles/may-30-incident-update-3783b8eb72e49183.md): Deno · 2022-06-02 · Easy · 2 min read · Incidents & postmortems, Consensus, Capacity planning, Linux
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
