8000 Update default values for keepalive-requests and keepalive-timeout (#… · nginx/kubernetes-ingress@6406747 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6406747

Browse files
authored
Update default values for keepalive-requests and keepalive-timeout (#5083)
1 parent 9e33e5a commit 6406747

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/content/configuration/global-configuration/configmap-resource.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ See the doc about [VirtualServer and VirtualServerRoute resources](/nginx-ingres
9595
|``resolver-ipv6`` | Enables IPv6 resolution in the resolver. Supported in NGINX Plus only. | ``True`` | [Support for Type ExternalName Services](https://github.com/nginxinc/kubernetes-ingress/tree/v3.4.2/examples/ingress-resources/externalname-services). |
9696
|``resolver-valid`` | Sets the time NGINX caches the resolved DNS records. Supported in NGINX Plus only. | TTL value of a DNS record | [Support for Type ExternalName Services](https://github.com/nginxinc/kubernetes-ingress/tree/v3.4.2/examples/ingress-resources/externalname-services). |
9797
|``resolver-timeout`` | Sets the [resolver_timeout](https://nginx.org/en/docs/http/ngx_http_core_module.html#resolver_timeout) for name resolution. Supported in NGINX Plus only. | ``30s`` | [Support for Type ExternalName Services](https://github.com/nginxinc/kubernetes-ingress/tree/v3.4.2/examples/ingress-resources/externalname-services). |
98-
|``keepalive-timeout`` | Sets the value of the [keepalive_timeout](https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_timeout) directive. | ``65s`` | |
99-
|``keepalive-requests`` | Sets the value of the [keepalive_requests](https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_requests) directive. | ``100`` | |
98+
|``keepalive-timeout`` | Sets the value of the [keepalive_timeout](https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_timeout) directive. | ``75s`` | |
99+
|``keepalive-requests`` | Sets the value of the [keepalive_requests](https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_requests) directive. | ``1000`` | |
100100
|``variables-hash-bucket-size`` | Sets the value of the [variables_hash_bucket_size](https://nginx.org/en/docs/http/ngx_http_core_module.html#variables_hash_bucket_size) directive. | ``256`` | |
101101
|``variables-hash-max-size`` | Sets the value of the [variables-hash-max-size](https://nginx.org/en/docs/http/ngx_http_core_module.html#variables_hash_max_size) directive. | ``1024`` | |
102102
{{% /table %}}

internal/configs/config_params.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ func NewDefaultConfigParams(isPlus bool) *ConfigParams {
197197
LBMethod: "random two least_conn",
198198
MainErrorLogLevel: "notice",
199199
ResolverIPV6: true,
200-
MainKeepaliveTimeout: "65s",
201-
MainKeepaliveRequests: 100,
200+
MainKeepaliveTimeout: "75s",
201+
MainKeepaliveRequests: 1000,
202202
VariablesHashBucketSize: 256,
203203
VariablesHashMaxSize: 1024,
204204
LimitReqKey: "${binary_remote_addr}",

0 commit comments

Comments
 (0)
0