Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging to release-4-lts: TT-8942 Change default RPC pool size (#5030) #5745

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ type SlaveOptionsConfig struct {
// The maximum time in seconds that a RPC ping can last.
PingTimeout int `json:"ping_timeout"`

// The number of RPC connections in the pool. Basically it creates a set of connections that you can re-use as needed.
// The number of RPC connections in the pool. Basically it creates a set of connections that you can re-use as needed. Defaults to 5.
RPCPoolSize int `json:"rpc_pool_size"`

// You can use this to set a period for which the Gateway will check if there are changes in keys that must be synchronized. If this value is not set then it will default to 10 seconds.
Expand Down
2 changes: 1 addition & 1 deletion rpc/rpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func Connect(connConfig Config, suppressRegister bool, dispatcherFuncs map[strin

clientSingleton.Conns = values.Config().RPCPoolSize
if clientSingleton.Conns == 0 {
clientSingleton.Conns = 20
clientSingleton.Conns = 5
}

clientSingleton.Dial = func(addr string) (conn net.Conn, err error) {
Expand Down
Loading