Skip to content

Commit 0366369

Browse files
committed
* Changed default balancer to RandomChoice() because PreferLocalDC() balancer works incorrectly with DNS-balanced call Discovery/ListEndpoints
1 parent d423070 commit 0366369

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Changed default balancer to `RandomChoice()` because `PreferLocalDC()` balancer works incorrectly with DNS-balanced call `Discovery/ListEndpoints`
2+
13
## v3.24.1
24
* Refactored initialization of coordination, ratelimiter, scheme, scripting and table clients from `internal/lazy` package to each client initialization with `sync.Once`
35
* Removed `internal/lazy` package

balancers/balancers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ func PreferWithFallback(balancer balancer.Balancer, filter func(endpoint Endpoin
132132
)
133133
}
134134

135+
// Default balancer used by default
135136
func Default() balancer.Balancer {
136-
return PreferLocalDCWithFallBack(RandomChoice())
137+
return RandomChoice()
137138
}

0 commit comments

Comments
 (0)