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
xds: Configure outlier detection. #9456
Conversation
b0f4107
to
7583f30
Compare
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.
I didn't notice any major issues.
7583f30
to
b876bea
Compare
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.
Test edsClustersWithOutlierDetection should be fixed. Using the constant intsead of string literal would be nice.
// load balancer. | ||
if (outlierDetection != null) { | ||
LoadBalancerProvider outlierDetectionProvider = lbRegistry.getProvider( | ||
"outlier_detection_experimental"); |
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.
This should be a constant like the rest of the policy names.
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.
There wasn't really a nice place to put it, since the constant file in the xds project is for xds load balancers - which this is not as it lives in core. There is a plan to move the load balancer over to this project though so we can introduce a constant at that point.
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.
Okay. I would have put it in the OutlierDectionLoadBalanceProvider class itself, but waiting until later is fine.
Enables the new OutlierDetectionLoadBalancer when outlier detection is enabled in the xDS cluster configuration.
Enables the new OutlierDetectionLoadBalancer when outlier detection is enabled in the xDS cluster configuration.
Enables the new
OutlierDetectionLoadBalancer
when outlier detection is enabledin the xDS cluster configuration.