Skip to content

Commit

Permalink
Query: set keepalive for store grpc client (thanos-io#7385)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Hoffmann <[email protected]>
  • Loading branch information
MichaHoffmann authored May 24, 2024
1 parent fcda8e7 commit 9be63b3
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 9be63b3

Please sign in to comment.