-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Change defaults #6226
Change defaults #6226
Conversation
/assign @ElvinEfendi |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf, ElvinEfendi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
PRs kubernetes#6226 and kubernetes#6143 changed the configuration defaults but didn't update all the configuration defaults docs in the user guide. This PR updates the user guide to be in sync with the defaults. Signed-off-by: Stevo Slavić <sslavic@gmail.com>
I would argue that this is a breaking change and not a bug fix as it is not fixing anything, merely just optimizing things. We have just got heavily burned by this change (in terms of $$) and I am sure we are neither first nor last ones. Changing defaults is always tricky as people learn to rely on them and I personally like the approach of Linux kernel when it is impossible to change user facing defaults/api even if they do not make sense. Having said that would you consider reverting this change? |
No. The change of the gzip default was also triggering the HPA due to CPU utilization on high RPS. Either way, I don't see a one size fits all.
Can you expand on that? Edit: the change also aligns with nginx defaults http://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip |
It is not that important what defaults nginx choose as technically speaking nginx-ingress is different product. I agree that one size does not fit all but you have changed default which has significant monetary impact. Traffic in clouds is quite expensive commodity and if suddenly gzip gets disabled then the egress traffic to world gets multiplied (it was ~3x in our case). EDIT: perhaps one missing piece is that we are running behind cloudflare who by default tries to use compression with origins servers if at all possible. granted the impact would be much lower if clients were connecting directly to nginx-ingress as they would likely not use compression |
Hi @aledbf, would you provide some detail on why the default value of For some legacy reason, we have an HAProxy in front of our nginx ingress, when upstream keepalive connection value is high (we tried, 32, 320, 640 and 960) the time for haproxy to establish a TCP connection with nginx is increased drastically (32 vs 320 connections ==> less than 1ms vs 50ms to 100ms latency). I'm a bit puzzled on why the increase of this field would result in worse latency. Thanks! |
What this PR does / why we need it:
Types of changes
Which issue/s this PR fixes
How Has This Been Tested?
Checklist: