In this lesson · topic 7 of 7
Topic 7
Check ownership, balance and hot keys
3 min read
Predict first
Predict first
Predict first
Take away
- Hash mod N is even but moves most keys when N changes.
- A ring moves only the keys next to the change.
- Virtual nodes trade memory for balance.
Sources
- David Karger, Eric Lehman, Tom Leighton, Rina Panigrahy, Matthew Levine, and Daniel Lewin, Consistent Hashing and Random Trees, ACM STOC, 1997.
- Giuseppe DeCandia and colleagues, Dynamo: Amazon’s Highly Available Key-value Store, ACM SOSP, 2007.
- John Lamping and Eric Veach, A Fast, Minimal Memory, Consistent Hash Algorithm, 2014.
- Vahab Mirrokni, Mikkel Thorup, and Morteza Zadimoghaddam, Consistent Hashing with Bounded Loads, 2016.