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

PWX-35430: Honor cluster domains in round-robin balancer. #2390

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Conversation

adityadani
Copy link
Contributor

What this PR does / why we need it:

When a cluster is running with cluster-domains enabled, the round robin balancer should choose the nodes to forward the request within the same cluster domain.

Which issue(s) this PR fixes (optional)
PWX-35430

Testing Notes
Added two UTs that exercise the changed node selection logic based on whether a cluster domain is specified or not.

Copy link
Contributor

@pp511 pp511 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Only caveat would be that in a Metro setup, nodes on the DR side which were participating in the roundrobin balancing will not be participating anymore. Which does reduce the number of nodes which will serve the request but sounds like the right thing to do.

Copy link

@diptiranjanpx diptiranjanpx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

- When the cluster is running with cluster-domains enabled, the round
  robin balancer should choose the nodes to forward the request within
  the same cluster domain.

Signed-off-by: Aditya Dani <[email protected]>
@adityadani adityadani merged commit 16f3ba1 into master Dec 19, 2023
2 checks passed
@adityadani adityadani deleted the PWX-35430 branch December 19, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants