Why partitions fail before nodes do

throughput = max(partition load)

Partitioning moves ranges between machines, but it cannot split a key that everyone wants at once, so pick keys whose hottest member fits on one node.

A partitioning scheme decides which keys share a machine, and balancing it spreads keys evenly across those machines. Rebalancing moves whole partitions, not individual keys, so a cluster can stay well distributed while one machine serves most of the traffic. The consequence is that a single hot key defeats every scheme, and the fix lives in the key choice or in a cache, not in another rebalancing pass.

Key-range partitioning assigns contiguous slices of sorted keys to nodes, so a range scan stays on one machine, but a popular range concentrates on the node that owns it. Hash partitioning runs each key through a hash function first, which spreads keys evenly and destroys their order, so a range scan must ask every partition. Consistent hashing places nodes on a ring and assigns each arc to the node that owns it. Virtual nodes give each physical machine several arcs spread around the ring, so when a node joins or leaves, only a bounded share of keys changes owner. Partition counts in the hundreds or thousands let whole partitions move between nodes instead of rehashing every key. Each of these choices decides where keys sit, and none of them decides how much traffic a key receives.

The abstraction says the cluster is balanced, and by key count it is. Hash the keys of a tenant-scoped system by tenant ID and each node holds an even slice of tenants. Then one tenant generates most of the traffic. Every request for that tenant lands on one arc, served by one machine, while the dashboard averages the load across the ring and reports a healthy cluster. Adding a node does not help, because the tenant still hashes to the same place. The dynamic rebalancer sees one node overloaded and moves cold ranges off it, spending bandwidth on data that was never the problem. The failure is quiet until the hot node saturates.

Choose the partition key from the query, not the entity. If every request carries a tenant, a chat, or a document scope, use that value as the key, so the unit of load and the unit of storage coincide. Before you commit, find the hottest key and estimate its share of traffic. If one key can carry most of the traffic and that share does not fit on one machine, no key choice will save you. Put a cache in front of it, pre-aggregate its reads, or split the entity by time. Keep the partition count in the hundreds or thousands so membership changes move whole partitions. Rebalance rarely and by hand, because a node that is only slow can look dead and trigger moves of real rows for nothing.

orders of magnitude
Partition count
hundreds to thousands

The fixed number of pieces that move as units when membership changes.

Share of traffic from one hot key
most of the traffic

A single key can carry this much, and its owning node serves it alone.

Nodes serving one hot key
1

The owner of that key's arc, regardless of how large the cluster grows.

Arcs per physical node
several

Virtual nodes spread each machine across the ring so its keys do not sit in one block.

Keys moved on membership change
a bounded share

Only keys on arcs the joining or leaving node touches change owner.

field note

A team starts with the obvious design: hash every key onto a ring of nodes, check that each node holds about the same number of keys, and call the cluster balanced. The first capacity review looks healthy, because key counts are even and no node is close to its limit.

The wall arrives with one popular key, a celebrity account or a tenant that carries most of the traffic. A hash spreads keys, not demand, so the node that owns that key serves it alone. Adding nodes changes nothing, because the key still hashes to the same arc. Latency on that node climbs while the rest of the ring sits mostly idle.

Dynamo's ring with virtual nodes bounds how much data moves on membership change, but that bound does not reach the hot key. The team tried rebalancing, which moved cold ranges off the busy node and fixed nothing. The lesson is that balance describes the mean while throughput is set by the maximum, so the fix is a different key or a cache in front of the hot key.