-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
OriginalDstCluster: Use ThreadAwareLoadBalancer #7820
OriginalDstCluster: Use ThreadAwareLoadBalancer #7820
Conversation
Use ThreadAwareLoadBalancer in OriginalDstCluster to pass OriginalDstClusterSharedPtr to LoadBalancer. Fixes: envoyproxy#7500 Signed-off-by: Jarno Rajahalme <[email protected]>
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.
Awesome, thanks. Can you check CI and merge master?
/wait
Signed-off-by: Jarno Rajahalme <[email protected]>
Signed-off-by: Jarno Rajahalme <[email protected]>
Please check CI. /wait |
ThreadAwareLoadBalancers are stateless and recreted each time the host set changes. Remove the internal state from the OriginalDstCluster::LoadBalancer and use a shared host map instead. Allow CLUSTER_PROVIDED to be configured as the LB type for ORIGINAL_DST cluster type. Map the ORIGINAL_DST_LB type to CLUSTER_PROVIDED so that providing the ThreadAwareLoadBalancer will not throw. Signed-off-by: Jarno Rajahalme <[email protected]>
Less chatty debugging experience. Signed-off-by: Jarno Rajahalme <[email protected]>
Using a shared host map now. Hoping for the CI to pass :-) |
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.
Thanks, this is a great cleanup. One deprecation request, otherwise LGTM. Thank you @jrajahalme!
/wait
Signed-off-by: Jarno Rajahalme <[email protected]>
ORIGINAL_DST_LB loab balancing type specifier is no longer needed, as CLUSTER_PROVIDED can be used instead. Signed-off-by: Jarno Rajahalme <[email protected]>
Signed-off-by: Jarno Rajahalme <[email protected]>
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.
Thanks, LGTM with one question.
/wait-any
Signed-off-by: Jarno Rajahalme <[email protected]>
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.
Awesome, thank you!
Use ThreadAwareLoadBalancer in OriginalDstCluster to pass
OriginalDstClusterSharedPtr to LoadBalancer.
Risk Level: Low
Fixes: #7500
Signed-off-by: Jarno Rajahalme [email protected]