Quick Decision Rule: When Scaling a 10-node distributed cache cluster to 11 nodes without triggering a near-100% cache miss storm, choose Consistent hashing ring with virtual nodes so only ~1/N keys remap when adding or removing a node.
| Trigger Condition | Scaling a 10-node distributed cache cluster to 11 nodes without triggering a near-100% cache miss storm |
|---|---|
| Recommended Choice | Consistent hashing ring with virtual nodes so only ~1/N keys remap when adding or removing a node |
| Classic Trap | Simple modulo sharding (`hash(k) % N`) remaps ~91% of all keys when N changes from 10 to 11, slamming origin databases. |
| Verification | Audited on 2026-11-23 · Distributed Systems Core · 2026 |
30-SECOND DECISION TRAP CHECK · PERFORMANCE
A 10-node Memcached tier maps keys via `hash(key) % N`. When ops scales the cluster from 10 to 11 nodes during Black Friday, cache hit rate collapses from 96% to 8% and overwhelms the DB. Why did adding capacity cause an outage?
With `hash(k) % N`, changing N changes the destination for almost every key simultaneously. Consistent hashing with virtual nodes moves only ~1/N of the keyspace cleanly.
Trap: Modulo sharding causes catastrophic cache invalidation on resize; use consistent hashing with virtual nodes.