diff --git a/CHANGELOG.md b/CHANGELOG.md index 622c7c3b5..842d3daa4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +* Set the `pick_first` balancer for short-lived grpc connection inside ydb cluster discovery attempt + ## v3.90.1 * Small broken change: added method `ID()` into `spans.Span` interface (need to implement in adapter) * Fixed traceparent header for tracing grpc requests diff --git a/internal/balancer/balancer.go b/internal/balancer/balancer.go index 6534e0a20..54b75d04b 100644 --- a/internal/balancer/balancer.go +++ b/internal/balancer/balancer.go @@ -202,6 +202,9 @@ func makeDiscoveryFunc( append( driverConfig.GrpcDialOptions(), grpc.WithBlock(), + grpc.WithDefaultServiceConfig(`{ + "loadBalancingPolicy": "pick_first" + }`), )..., ) if err != nil {