-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistent hashing question #25
Comments
Here's the relevant code: Lines 95 to 100 in 8403c28
Based on that, and some very hazy memory: For a given weight |
Thanks! So a higher weight => more distributions on the ring, as chosen by |
This library is not really about "Consistent hash", read more https://en.wikipedia.org/wiki/Rendezvous_hashing |
FYI in case this is helpful, this was the original inspiration / reference material for the library 14 years ago: This is the part that translated to
Mostly I found the diagrams in that blog post really helpful in forming a mental model. |
Thanks for that! I plan to implement a bounded-load layer on top of this once it becomes necessary. For anyone else out there, here are the resources I drew from when learning about consistent hashing: |
This isn't an issue with the library, just a question about how consistent hashing works with weights. If I change the weight of a target by some small amount, let's say out of 10 targets each with a weight of 1, I change the weight of one target to 3. How significantly will the keys be redistributed?
The text was updated successfully, but these errors were encountered: