Skip to content
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

Changing precision? #19

Open
mnutt opened this issue Nov 30, 2018 · 0 comments
Open

Changing precision? #19

mnutt opened this issue Nov 30, 2018 · 0 comments

Comments

@mnutt
Copy link

mnutt commented Nov 30, 2018

We've been using node-hash-ring very successfully for many years, so thank you for writing this library.

One thing we noticed was that the distributions, while even enough for balancing servers, often aren't even enough for statistical purposes. The use case is using it to distribute millions of user identifiers into a few buckets, and when doing so we sometimes see up to 5% differences in group sizes.

Would you be interested in a PR for an optional argument for tuning the number of rings, to trade off some cpu/memory for more even distribution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant