-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New balancer implementation: consistent hash subset #3396
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
Conversation
/retest |
@diegows any specific reason you're using different packages per annotation? Why do you not use existing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@diegows any specific reason you're using different packages per annotation? Why do you not use existing
internal/ingress/annotations/upstreamhashby/
to parse the two new annotations you're introducing?
No reason, fixed following the coding standards.
Thanks for your detailed review @ElvinEfendi. Addressed some of the issues, I hope I can finish everything before the end of the week. |
@diegows please squash the commits and rebase from master (we fix several e2e flakiness) |
@aledbf @ElvinEfendi Squashed and rebased. I've applied all the feedback you suggested, improved the code, added e2e test. Let me know how it looks now. Thanks! |
/lgtm |
@diegows please squash your commits into one, we can then merge this. |
0765feb
to
c68cae3
Compare
but instead of mapping to a single node, we map to a subset of nodes.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: diegows, ElvinEfendi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Add Consistent hash balancing to a subset of nodes. It provides the benefits of consistent hashing, but also providing some load balance between some nodes.