From cb0f94487cf199ccb1fc73944f2d078b0216e07f Mon Sep 17 00:00:00 2001 From: Hans Hasselberg Date: Thu, 13 Feb 2020 16:27:33 +0100 Subject: [PATCH] config: increase http_max_conns_per_client default to 200 (#7289) --- agent/config/default.go | 2 +- agent/config/runtime.go | 2 +- agent/config/runtime_test.go | 2 +- website/source/docs/agent/options.html.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/agent/config/default.go b/agent/config/default.go index 3d1b613130..4967849892 100644 --- a/agent/config/default.go +++ b/agent/config/default.go @@ -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 diff --git a/agent/config/runtime.go b/agent/config/runtime.go index 00788eb086..4d86191931 100644 --- a/agent/config/runtime.go +++ b/agent/config/runtime.go @@ -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 diff --git a/agent/config/runtime_test.go b/agent/config/runtime_test.go index 2407bfcf17..a37bb12629 100644 --- a/agent/config/runtime_test.go +++ b/agent/config/runtime_test.go @@ -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 }, }, diff --git a/website/source/docs/agent/options.html.md b/website/source/docs/agent/options.html.md index 61859bebec..0aa7b54fea 100644 --- a/website/source/docs/agent/options.html.md +++ b/website/source/docs/agent/options.html.md @@ -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`. * `https_handshake_timeout` - Configures the limit for how long the HTTPS server in both client and