store/tikv: refine grpc config (#13938)
This commit is contained in:
committed by
pingcap-github-bot
parent
5355b1dba2
commit
f64c22fbc5
@ -137,7 +137,12 @@ func (a *connArray) Init(addr string, security config.Security, idleNotify *uint
|
||||
grpc.WithStreamInterceptor(streamInterceptor),
|
||||
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(MaxRecvMsgSize)),
|
||||
grpc.WithConnectParams(grpc.ConnectParams{
|
||||
Backoff: backoff.Config{MaxDelay: time.Second * 3},
|
||||
Backoff: backoff.Config{
|
||||
BaseDelay: 100 * time.Millisecond, // Default was 1s.
|
||||
Multiplier: 1.6, // Default
|
||||
Jitter: 0.2, // Default
|
||||
MaxDelay: 3 * time.Second, // Default was 120s.
|
||||
},
|
||||
MinConnectTimeout: dialTimeout,
|
||||
}),
|
||||
grpc.WithKeepaliveParams(keepalive.ClientParameters{
|
||||
|
||||
Reference in New Issue
Block a user