Increase max idle connections from 100 to 4096 (#6244)

This is to be inline with our benchmarking results
master
Harshavardhana 6 years ago committed by GitHub
parent 5f69f04909
commit bd2b22572f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      cmd/rpc/client.go

@ -116,11 +116,13 @@ func NewClient(serviceURL *xnet.URL, tlsConfig *tls.Config, timeout time.Duratio
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
DialContext: newCustomDialContext(timeout),
MaxIdleConns: 100,
MaxIdleConnsPerHost: 4096,
MaxIdleConns: 4096,
IdleConnTimeout: 90 * time.Second,
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
TLSClientConfig: tlsConfig,
DisableCompression: true,
},
},
serviceURL: serviceURL,

Loading…
Cancel
Save