store/tikv: fix grpc backoff config (#13928)
This commit is contained in:
committed by
pingcap-github-bot
parent
b1391ec9ee
commit
8f09e816b2
@ -136,7 +136,10 @@ func (a *connArray) Init(addr string, security config.Security, idleNotify *uint
|
||||
grpc.WithUnaryInterceptor(unaryInterceptor),
|
||||
grpc.WithStreamInterceptor(streamInterceptor),
|
||||
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(MaxRecvMsgSize)),
|
||||
grpc.WithConnectParams(grpc.ConnectParams{Backoff: backoff.Config{BaseDelay: time.Second * 3}}),
|
||||
grpc.WithConnectParams(grpc.ConnectParams{
|
||||
Backoff: backoff.Config{MaxDelay: time.Second * 3},
|
||||
MinConnectTimeout: dialTimeout,
|
||||
}),
|
||||
grpc.WithKeepaliveParams(keepalive.ClientParameters{
|
||||
Time: time.Duration(keepAlive) * time.Second,
|
||||
Timeout: time.Duration(keepAliveTimeout) * time.Second,
|
||||
|
||||
Reference in New Issue
Block a user