Skip to content

Commit

Permalink
Merge pull request #1548 from ydb-platform/use-pick-first-for-discovery
Browse files Browse the repository at this point in the history
Use `pick_first` balancer for discovery attempts
  • Loading branch information
asmyasnikov authored Nov 8, 2024
2 parents 4d80170 + 5d7d6cc commit 8e7f434
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions internal/balancer/balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ func makeDiscoveryFunc(
append(
driverConfig.GrpcDialOptions(),
grpc.WithBlock(),
grpc.WithDefaultServiceConfig(`{
"loadBalancingPolicy": "pick_first"
}`),
)...,
)
if err != nil {
Expand Down

0 comments on commit 8e7f434

Please sign in to comment.