Consistent hashing
eli.thegreenplace.net
Consistent hashing
1–10 of 26 posts
Re: Consistent hashing
#2Re: Consistent hashing
#3Unless it's a clever play on "consistent", that is. In which case: carry on.
Re: Consistent hashing
#4Re: Consistent hashing
#5Re: Consistent hashing
#6Re: Consistent hashing
#7It's also easier to come up with an exact weighted version of rendezvous hashing. See https://en.wikipedia.org/wiki/Rendezvous_hashing#Weighted_re... for the weighted variant.
Faintly related: if you are into load balancing, you might also want to look into the 'power of 2 choices'. See eg https://www.eecs.harvard.edu/~michaelm/postscripts/mythesis.... or this HN discussion at https://news.ycombinator.com/item?id=37143376
The basic idea is that you can vastly improve on random assignment for load balancing by instead picking two servers at random, and assigning to the less loaded one.
It's an interesting topic in itself, but there's also ways to combine it with consistent hashing / rendezvous hashing.
Re: Consistent hashing
#8Re: Consistent hashing
#9tl;dr: subdivide your hash space (say, [0, 2^64)) by the number of slots, then utilize the index of the slot your hash falls in.
Or, in another sense: rely on / rather than % for distribution.
Is this accurate or am I missing something?
Re: Consistent hashing
#10The typo is really really bothering me, because the future generations would not be able to search for it.
It's so much better to copy and paste the title of articles.