How it works
Track token ownership, key and byte distribution, per-node request rate, hot partitions, migration progress, and routing-version mismatch. If clients disagree about membership, the same key can be written to different owners. Here is the sequence: map v41 says a key belongs to B, and v42 gives it to D. One app server has v42 and writes the key to D. Another still has v41, reads from B, and gets the old value. A versioned routing map and an explicit transition protocol make this observable, and nodes can refuse requests for ranges they no longer own. Redis Cluster does this with MOVED and ASK redirects that correct clients holding a stale map.
During a node failure, do not assume a reassignment has copied durable data; use replicas and repair. Test joins, removals, and interrupted transfers with realistic skew. Bound migration bandwidth so background copying does not starve foreground requests. In an example, a 2 TB transfer capped at 100 MB/s takes about 5.6 hours, so plan for a second failure during that window. Check that replacement nodes have enough disk and that replicas span the intended failure domains.
Consistent hashing is useful when membership changes frequently enough that minimizing remaps matters. A simple fixed partition map may be easier when partitions are stable and centrally managed. Redis Cluster, for instance, assigns 16,384 hash slots to nodes explicitly instead of using a ring.
Two app servers disagree about the current token map during a node join. What is the immediate risk?
They may route reads and writes for the same key to different owners. Pause or coordinate cutover through a versioned map, with forwarding or dual-read behavior defined for the transition.
Use this as a guide for self review; written answers are not graded.Keep in mind
- Observe routing versions, skew, and migration lag.
- Choose a ring when its movement benefit outweighs its operational cost.