Skip to content

Commit

Permalink
outlier detection configuration for etcd client
Browse files Browse the repository at this point in the history
  • Loading branch information
aneesh1 committed Dec 5, 2024
1 parent 3d07014 commit de957a9
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,29 @@ var newETCD3Client = func(c storagebackend.TransportConfig) (*clientv3.Client, e
// which seems to be what we want as the metrics will be collected on each attempt (retry)
grpc.WithChainUnaryInterceptor(grpcprom.UnaryClientInterceptor),
grpc.WithChainStreamInterceptor(grpcprom.StreamClientInterceptor),
grpc.WithDefaultServiceConfig(`
{
"loadBalancingConfig": [
{
"outlier_detection_experimental": {
"interval": "2s",
"baseEjectionTime": "30s",
"maxEjectionTime": "300s",
"maxEjectionPercent": 10,
"failurePercentageEjection": {
"threshold": 85,
"enforcementPercentage": 100,
"minimumHosts": 3,
"requestVolume": 5
},
"childPolicy": [{"round_robin": {}}]
}
}
],
"healthCheckConfig": {
"serviceName": ""
}
}`),
}
if utilfeature.DefaultFeatureGate.Enabled(genericfeatures.APIServerTracing) {
tracingOpts := []otelgrpc.Option{
Expand Down

0 comments on commit de957a9

Please sign in to comment.