-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Why was LoadBalancerAlgorithm removed from configuration? #3929
Comments
@schancel It looks like we moved to specifying the load balancing algorithm per-ingress as an annotation, rather than globally as a configmap value. Looks like the docs never got updated to reflect that. |
Thank you |
@schancel have you tried what's documented in there? It should work. What was deleted is not about @alexkursell no, we should still have support for configuring load balancing algorithm globally. |
the here is my test:
I'm based on v0.21, but checking the code ,seems no releavant fix from 0.21 to latest. |
@panpan0000 are you following the note in the page?
Also in recent versions changing
to list the backend names
You can find more info about the plugin and how to install it at https://kubernetes.github.io/ingress-nginx/troubleshooting/, but it requires you use ingress-nginx version |
@schancel After talking with @ElvinEfendi in person it does look like the configmap value isn't being applied properly. I'll start working on a fix when I get the time. In the meantime, you can use the ingress annotation instead. |
@alexkursell @ElvinEfendi Thank you both for the clarification ! |
It's a pity. Since 0.21 is already dynamic-mode, so least_conn/ip_hash is not working. But when I add annotation to ingress instance as below
The backend doesn't change at all. I expected the ewma weight or something will change from below status port API to reflect Lua changes, but no difference than what it was ( default
|
while least_conn support is lacking, there's an alternative for ip_hash: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#custom-nginx-upstream-hashing
When you set |
@ElvinEfendi , Yes! when |
@alexkursell maybe ^^ is another possible validation |
In April of 2017 the following PR was merged to add support for overriding the load balancing algorithm: #673
On the 28th of November, this PR was merged, deleting it saying that it's unused:
#3478
It's not clear to me that it was in fact unused. The documentation still references it:
https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/configmap.md#load-balance
@ElvinEfendi @aledbf @jeffpearce
The text was updated successfully, but these errors were encountered: