Skip to content

Commit

Permalink
fix(v2): set grpc.WithMaxCallAttempts() for the query backend client (#…
Browse files Browse the repository at this point in the history
…3682)

* Set grpc.WithMaxCallAttempts() for the query backend client

* Revert timeout config

* Add todo
  • Loading branch information
aleks-p authored Nov 14, 2024
1 parent d320fcd commit bef452a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/experiment/query_backend/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func dial(address string, grpcClientConfig grpcclient.Config) (*grpc.ClientConn,
options = append(options,
grpc.WithUnaryInterceptor(otgrpc.OpenTracingClientInterceptor(opentracing.GlobalTracer())),
grpc.WithDefaultServiceConfig(grpcServiceConfig),
grpc.WithMaxCallAttempts(500),
)
return grpc.NewClient(address, options...)
}
Expand Down
1 change: 1 addition & 0 deletions pkg/experiment/query_backend/concurrency.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ var (

func CreateConcurrencyInterceptor(logger log.Logger) (grpc.UnaryServerInterceptor, error) {
gclLog := newGclLogger(logger)
// TODO(aleks-p): Implement metric registry
serverLimit, err := limit.NewGradient2Limit("query-backend-concurrency-limit", minLimit, maxLimit, initialLimit, queueSizeFn, smoothing, longWindow, gclLog, nil)
if err != nil {
return nil, err
Expand Down

0 comments on commit bef452a

Please sign in to comment.