diff --git a/docs/user-guide/nginx-configuration/configmap.md b/docs/user-guide/nginx-configuration/configmap.md index 45d1b8e05..fdb46c73b 100755 --- a/docs/user-guide/nginx-configuration/configmap.md +++ b/docs/user-guide/nginx-configuration/configmap.md @@ -92,7 +92,7 @@ The following table shows a configuration option's name, type, and the default v |[ssl-buffer-size](#ssl-buffer-size)|string|"4k"| |[use-proxy-protocol](#use-proxy-protocol)|bool|"false"| |[proxy-protocol-header-timeout](#proxy-protocol-header-timeout)|string|"5s"| -|[use-gzip](#use-gzip)|bool|"true"| +|[use-gzip](#use-gzip)|bool|"false"| |[use-geoip](#use-geoip)|bool|"true"| |[use-geoip2](#use-geoip2)|bool|"false"| |[enable-brotli](#enable-brotli)|bool|"false"| @@ -587,7 +587,7 @@ _**default:**_ 5s ## use-gzip -Enables or disables compression of HTTP responses using the ["gzip" module](http://nginx.org/en/docs/http/ngx_http_gzip_module.html). MIME types to compress are controlled by [gzip-types](#gzip-types). _**default:**_ true +Enables or disables compression of HTTP responses using the ["gzip" module](http://nginx.org/en/docs/http/ngx_http_gzip_module.html). MIME types to compress are controlled by [gzip-types](#gzip-types). _**default:**_ false ## use-geoip @@ -694,7 +694,7 @@ _References:_ Activates the cache for connections to upstream servers. The connections parameter sets the maximum number of idle keepalive connections to upstream servers that are preserved in the cache of each worker process. When this number is exceeded, the least recently used connections are closed. -_**default:**_ 32 +_**default:**_ 320 _References:_ [http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive](http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive) @@ -713,7 +713,7 @@ _References:_ Sets the maximum number of requests that can be served through one keepalive connection. After the maximum number of requests is made, the connection is closed. -_**default:**_ 100 +_**default:**_ 10000 _References:_ diff --git a/internal/ingress/controller/config/config.go b/internal/ingress/controller/config/config.go index f2312ba48..67c537abe 100644 --- a/internal/ingress/controller/config/config.go +++ b/internal/ingress/controller/config/config.go @@ -764,7 +764,7 @@ func NewDefault() Configuration { SSLSessionTickets: false, SSLSessionTimeout: sslSessionTimeout, EnableBrotli: false, - UseGzip: true, + UseGzip: false, UseGeoIP: true, UseGeoIP2: false, WorkerProcesses: strconv.Itoa(runtime.NumCPU()), @@ -798,9 +798,9 @@ func NewDefault() Configuration { ProxyHTTPVersion: "1.1", ProxyMaxTempFileSize: "1024m", }, - UpstreamKeepaliveConnections: 32, + UpstreamKeepaliveConnections: 320, UpstreamKeepaliveTimeout: 60, - UpstreamKeepaliveRequests: 100, + UpstreamKeepaliveRequests: 10000, LimitConnZoneVariable: defaultLimitConnZoneVariable, BindAddressIpv4: defBindAddress, BindAddressIpv6: defBindAddress, diff --git a/internal/ingress/controller/template/configmap_test.go b/internal/ingress/controller/template/configmap_test.go index e4101fb07..4c2adb739 100644 --- a/internal/ingress/controller/template/configmap_test.go +++ b/internal/ingress/controller/template/configmap_test.go @@ -63,7 +63,7 @@ func TestMergeConfigMapToStruct(t *testing.T) { "access-log-params": "buffer=4k gzip", "access-log-path": "/var/log/test/access.log", "error-log-path": "/var/log/test/error.log", - "use-gzip": "true", + "use-gzip": "false", "gzip-level": "9", "gzip-min-length": "1024", "gzip-types": "text/html",