Skip to content

Commit

Permalink
Revert "perf(proxy): use higher default keepalive request value for N…
Browse files Browse the repository at this point in the history
…ginx tuning (#12223)"

This reverts commit 609874f.
  • Loading branch information
AndyZhang0707 committed Jul 26, 2024
1 parent 57773ee commit 06424dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions CHANGELOG/unreleased/kong/optimize_keepalive_parameters.yml

This file was deleted.

2 changes: 1 addition & 1 deletion kong.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@
# at worst any regex Kong executes could finish within
# roughly 2 seconds.

#nginx_http_keepalive_requests = 10000 # Sets the maximum number of client requests that can be served through one
#nginx_http_keepalive_requests = 1000 # Sets the maximum number of client requests that can be served through one
# keep-alive connection. After the maximum number of requests are made,
# the connection is closed.
# Closing connections periodically is necessary to free per-connection
Expand Down
4 changes: 2 additions & 2 deletions kong/templates/kong_defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ trusted_ips = NONE
error_default_type = text/plain
upstream_keepalive = NONE
upstream_keepalive_pool_size = 512
upstream_keepalive_max_requests = 10000
upstream_keepalive_max_requests = 1000
upstream_keepalive_idle_timeout = 60
nginx_user = kong kong
Expand All @@ -76,7 +76,7 @@ nginx_http_ssl_dhparam = NONE
nginx_http_ssl_session_tickets = NONE
nginx_http_ssl_session_timeout = NONE
nginx_http_lua_regex_match_limit = 100000
nginx_http_keepalive_requests = 10000
nginx_http_keepalive_requests = 1000
nginx_stream_ssl_protocols = NONE
nginx_stream_ssl_prefer_server_ciphers = NONE
nginx_stream_ssl_dhparam = NONE
Expand Down

0 comments on commit 06424dc

Please sign in to comment.