← All posts · Incident · September 14, 2026 · 5 min read

Postmortem: a hot shard and slow queries

On September 12 our query p99 in one region rose from about 43ms to just over 900ms for a little over half an hour. No data was lost and no alerts were missed. This is what happened and what we changed.

Timeline

  • 22:03 UTC — a routine storage rebalance began moving shards between nodes.
  • 22:09 — one node ended up owning two of the busiest shards at once. Its p99 climbed and the anomaly detector paged the primary on-call.
  • 22:21 — we paused the rebalance and moved one hot shard to an idle node by hand.
  • 22:37 — latency returned to baseline. The rebalance resumed with the new limits below.

Root cause

The rebalancer optimised for an even shard count per node, not for the load behind each shard. Two shards happened to carry a disproportionate share of traffic, and nothing stopped them from landing together.

What we changed

The rebalancer now weights shards by recent read load and refuses to co-locate two shards above a load threshold. We also added a burn-rate alert on latency, so the next one pages us a few minutes earlier.