Skip to content

Commit b66487f

Browse files
authored
Merge branch 'preferred-node-id' into node_id_hint_3
2 parents 4e42c35 + 8e7f434 commit b66487f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
* Added option to set preferred node id to execute query
2+
* Set the `pick_first` balancer for short-lived grpc connection inside ydb cluster discovery attempt
23

34
## v3.90.1
45
* Small broken change: added method `ID()` into `spans.Span` interface (need to implement in adapter)

internal/balancer/balancer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ func makeDiscoveryFunc(
202202
append(
203203
driverConfig.GrpcDialOptions(),
204204
grpc.WithBlock(),
205+
grpc.WithDefaultServiceConfig(`{
206+
"loadBalancingPolicy": "pick_first"
207+
}`),
205208
)...,
206209
)
207210
if err != nil {

0 commit comments

Comments
 (0)