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

Weights #16

manuel-rubio opened this Issue Dec 17, 2015 · 0 comments


None yet
1 participant
Copy link

commented Dec 17, 2015

sometimes it's needed to do a balance between several nodes but based on weights, for example, we have three nodes (node1, node2 and node3) but we know that node1 is capable to handle 100 requests, node2 is capable to handle 50 requests and node3 is only capable to handle 10 requests.

Do a perfect balance between them it's not the solution because node3 could be down when we try to put there more than 10 requests.

At this moment I'm adding to the ring the name of the node, a separator and the sequence number based on the weight so, in the above example I have to insert: node1_1, node1_2, node1_3, ..., node1_100; node2_1, node2_2, node2_3, ..., node2_50; node3_1, node3_2, node3_3, ..., node3_10. But maybe it could be great if exists an option in the libraries to avoid to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.