mirror of https://github.com/status-im/consul.git
config: increase http_max_conns_per_client default to 200 (#7289)
This commit is contained in:
parent
34e978c64d
commit
cb0f94487c
|
@ -103,7 +103,7 @@ func DefaultSource() Source {
|
|||
recursor_timeout = "2s"
|
||||
}
|
||||
limits = {
|
||||
http_max_conns_per_client = 100
|
||||
http_max_conns_per_client = 200
|
||||
https_handshake_timeout = "5s"
|
||||
rpc_handshake_timeout = "5s"
|
||||
rpc_rate = -1
|
||||
|
|
|
@ -806,7 +806,7 @@ type RuntimeConfig struct {
|
|||
// HTTPMaxConnsPerClient limits the number of concurrent TCP connections the
|
||||
// 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
|
||||
|
||||
// HTTPSHandshakeTimeout is the time allowed for HTTPS client to complete the
|
||||
|
|
|
@ -3466,7 +3466,7 @@ func TestConfigFlagsAndEdgecases(t *testing.T) {
|
|||
// intentional.
|
||||
rt.RPCHandshakeTimeout = 5 * time.Second
|
||||
rt.HTTPSHandshakeTimeout = 5 * time.Second
|
||||
rt.HTTPMaxConnsPerClient = 100
|
||||
rt.HTTPMaxConnsPerClient = 200
|
||||
rt.RPCMaxConnsPerClient = 100
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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
|
||||
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
|
||||
value is `100`.
|
||||
value is `200`.
|
||||
* <a name="https_handshake_timeout"></a><a
|
||||
href="#https_handshake_timeout">`https_handshake_timeout`</a> -
|
||||
Configures the limit for how long the HTTPS server in both client and
|
||||
|
|
Loading…
Reference in New Issue