Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
grpc client use round_robin loadBalancer
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmie Han <[email protected]>
hanjm committed Jul 28, 2023
1 parent fab4c83 commit 1692dc4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/extgrpc/client.go
Original file line number Diff line number Diff line change
@@ -65,6 +65,11 @@ func StoreClientGRPCOpts(logger log.Logger, reg *prometheus.Registry, tracer ope
tracing.StreamClientInterceptor(tracer),
),
),
grpc.WithDefaultServiceConfig(`
{
"loadBalancingConfig": [ { "round_robin": {} } ]
}
`),
}
if reg != nil {
reg.MustRegister(grpcMets)

0 comments on commit 1692dc4

Please sign in to comment.