3rd-Eden / node-hashring

hashring is a consistent hashing algorithm for Node.js that is compatible with libketama and python's hash_ring package
MIT License
350 stars 61 forks source link

Added vbuckets config per shard #7

Closed geisbruch closed 11 years ago

geisbruch commented 11 years ago

Hi, We've added the functionality of create a shard with an specific amount of vnodes, so you could modify the amount of vnodes in a new shard to add it progresively, then you'll get a better distribution of misses when a new shard is added.

This change is 100% backward compatible

3rd-Eden commented 11 years ago

@geisbruch Thanks for the pull request, I will review it shortly but as there are not backwards compatibility issues, it should be fine :)