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

proxy: refactor loadbalanced endpoint selection #2652

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

AlexanderYastrebov
Copy link
Member

Rename setRequestURLForLoadBalancedBackend to selectEndpoint and move loadbalancing context creation inside

Followup on #2648

Rename setRequestURLForLoadBalancedBackend to selectEndpoint and move loadbalancing context creation inside

Followup on #2648

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
func setRequestURLForLoadBalancedBackend(u *url.URL, rt *routing.Route, lbctx *routing.LBContext) *routing.LBEndpoint {
func selectEndpoint(ctx *context, registry *routing.EndpointRegistry) *routing.LBEndpoint {
rt := ctx.route

Copy link
Member Author

Choose a reason for hiding this comment

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

Here we can put fadeIn and passive healthchecks

@RomanZavodskikh
Copy link
Contributor

👍

2 similar comments
@RomanZavodskikh
Copy link
Contributor

👍

@AlexanderYastrebov
Copy link
Member Author

👍

@AlexanderYastrebov AlexanderYastrebov merged commit 26018f6 into master Oct 5, 2023
@AlexanderYastrebov AlexanderYastrebov deleted the proxy/refactor-lb-endpoint branch October 5, 2023 15:02
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

Successfully merging this pull request may close these issues.

2 participants