store/tikv: fix grpc backoff config (#13928)

This commit is contained in:
Ewan Chou
2019-12-05 19:39:49 +08:00
committed by pingcap-github-bot
parent b1391ec9ee
commit 8f09e816b2

View File

@ -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,