From b3871a2f4d8b51a88241ffa5e6054a650508ac76 Mon Sep 17 00:00:00 2001 From: zhangjinpeng1987 Date: Wed, 23 Oct 2019 09:47:25 +0800 Subject: [PATCH] tune grpc connection count between tidb and tikv (#12884) Signed-off-by: zhangjinpeng1987 --- config/config.go | 2 +- config/config.toml.example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index ddf6a37937b11..2b6d494e94a99 100644 --- a/config/config.go +++ b/config/config.go @@ -404,7 +404,7 @@ var defaultConf = Config{ Reporter: OpenTracingReporter{}, }, TiKVClient: TiKVClient{ - GrpcConnectionCount: 16, + GrpcConnectionCount: 4, GrpcKeepAliveTime: 10, GrpcKeepAliveTimeout: 3, CommitTimeout: "41s", diff --git a/config/config.toml.example b/config/config.toml.example index e98b19e14bcab..6c38768df569f 100644 --- a/config/config.toml.example +++ b/config/config.toml.example @@ -259,7 +259,7 @@ local-agent-host-port = "" [tikv-client] # Max gRPC connections that will be established with each tikv-server. -grpc-connection-count = 16 +grpc-connection-count = 4 # After a duration of this time in seconds if the client doesn't see any activity it pings # the server to see if the transport is still alive.