Skip to content

Commit

Permalink
tune grpc connection count between tidb and tikv (pingcap#12884)
Browse files Browse the repository at this point in the history
Signed-off-by: zhangjinpeng1987 <zhangjinpeng@pingcap.com>
  • Loading branch information
zhangjinpeng87 authored and XiaTianliang committed Dec 21, 2019
1 parent 14d11af commit b3871a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ var defaultConf = Config{
Reporter: OpenTracingReporter{},
},
TiKVClient: TiKVClient{
GrpcConnectionCount: 16,
GrpcConnectionCount: 4,
GrpcKeepAliveTime: 10,
GrpcKeepAliveTimeout: 3,
CommitTimeout: "41s",
Expand Down
2 changes: 1 addition & 1 deletion config/config.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b3871a2

Please sign in to comment.