config: increase http_max_conns_per_client default to 200 (#7289)

This commit is contained in:
Hans Hasselberg 2020-02-13 16:27:33 +01:00 committed by GitHub
parent 34e978c64d
commit cb0f94487c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -103,7 +103,7 @@ func DefaultSource() Source {
recursor_timeout = "2s" recursor_timeout = "2s"
} }
limits = { limits = {
http_max_conns_per_client = 100 http_max_conns_per_client = 200
https_handshake_timeout = "5s" https_handshake_timeout = "5s"
rpc_handshake_timeout = "5s" rpc_handshake_timeout = "5s"
rpc_rate = -1 rpc_rate = -1

View File

@ -806,7 +806,7 @@ type RuntimeConfig struct {
// HTTPMaxConnsPerClient limits the number of concurrent TCP connections the // HTTPMaxConnsPerClient limits the number of concurrent TCP connections the
// HTTP(S) server will accept from any single source IP address. // HTTP(S) server will accept from any single source IP address.
// //
// hcl: limits{ http_max_conns_per_client = 100 } // hcl: limits{ http_max_conns_per_client = 200 }
HTTPMaxConnsPerClient int HTTPMaxConnsPerClient int
// HTTPSHandshakeTimeout is the time allowed for HTTPS client to complete the // HTTPSHandshakeTimeout is the time allowed for HTTPS client to complete the

View File

@ -3466,7 +3466,7 @@ func TestConfigFlagsAndEdgecases(t *testing.T) {
// intentional. // intentional.
rt.RPCHandshakeTimeout = 5 * time.Second rt.RPCHandshakeTimeout = 5 * time.Second
rt.HTTPSHandshakeTimeout = 5 * time.Second rt.HTTPSHandshakeTimeout = 5 * time.Second
rt.HTTPMaxConnsPerClient = 100 rt.HTTPMaxConnsPerClient = 200
rt.RPCMaxConnsPerClient = 100 rt.RPCMaxConnsPerClient = 100
}, },
}, },

View File

@ -1397,7 +1397,7 @@ Valid time units are 'ns', 'us' (or 'µs'), 'ms', 's', 'm', 'h'."
Configures a limit of how many concurrent TCP connections a single Configures a limit of how many concurrent TCP connections a single
client IP address is allowed to open to the agent's HTTP(S) server. This client IP address is allowed to open to the agent's HTTP(S) server. This
affects the HTTP(S) servers in both client and server agents. Default affects the HTTP(S) servers in both client and server agents. Default
value is `100`. value is `200`.
* <a name="https_handshake_timeout"></a><a * <a name="https_handshake_timeout"></a><a
href="#https_handshake_timeout">`https_handshake_timeout`</a> - href="#https_handshake_timeout">`https_handshake_timeout`</a> -
Configures the limit for how long the HTTPS server in both client and Configures the limit for how long the HTTPS server in both client and