-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[backport -> release/3.5.x] perf(proxy): use higher default keepalive request value for Nginx tuning (#12223) #12530
Conversation
What I have found is that on Mac the default ulimit -n seems to be 256 and these settings make the Kong not to work correctly. So perhaps a word somewhere about |
hi @bungle What do you find in macOS? I tested this branch in my macOS Bazel environment and did not find any related error reports. If I set the limit to 256 mannually to test, the warnning message I get is not related to this PR, I revert this PR, and still get them:
|
@@ -0,0 +1,3 @@ | |||
message: Bumped default values of `nginx_http_keepalive_requests` and `upstream_keepalive_max_requests` to `10000`. | |||
type: performance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although this PR modifies the default value of NGINX, it doesn't have a significant impact on the client's side. Therefore, I don't believe we need to categorize this feature as a breaking_change.
Typically, users won't notice this alteration. However, under stressful testing scenarios, they might observe an increase in NGINX's performance, specifically in RPS
See this: https://kongstrong.slack.com/archives/C02L7HR45DY/p1706256832168089 I think that was related. Aka kong started, and displayed those warnings. But then timers or events didn't work anymore. In logs you will get:
Aka, kong starts and accepts admin api calls, but doesn't work. But perhaps it is releated to some other bump, e.g. did we change something else too? Before some change, it worked fine with |
Got it, let me try, will get back to you if I have some new discoveries. |
We have pinpointed the reason why kong worker generated so many alert logs in #12530 (comment), it is related to this PR: https://github.com/Kong/kong-ee/pull/7880. So we can advance the merging progress of this PR. |
c2646de
to
3ea7ce3
Compare
Rebased on master as master has too many changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge on CI passes
cf748ed
to
c7589e6
Compare
…ing (#12223) Bumped default values of `nginx_http_keepalive_requests` and `upstream_keepalive_max_requests` to `10000`. KAG-3360 --------- Co-authored-by: Datong Sun <[email protected]> (cherry picked from commit f7e6eee)
Bumped default values of
nginx_http_keepalive_requests
andupstream_keepalive_max_requests
to10000
.backport #12223
Summary
Checklist
The Pull Request has testschangelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdThere is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HEREIssue reference
Fix KAG-3360