Skip to content

Commit

Permalink
Query: set keepalive for store grpc client
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaHoffmann committed May 23, 2024
1 parent 2538562 commit c5f6c72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/extgrpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func StoreClientGRPCOpts(logger log.Logger, reg prometheus.Registerer, tracer op
tracing.StreamClientInterceptor(tracer),
),
),
grpc.WithKeepaliveParams(keepalive.ClientParameters{Time: 10 * time.Second, Timeout: 5 * time.Second}),
}
if reg != nil {
reg.MustRegister(grpcMets)
Expand Down

0 comments on commit c5f6c72

Please sign in to comment.