-
Notifications
You must be signed in to change notification settings - Fork 11
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
Hash load balancing does not work properly with this module #10
Comments
@ZigzagAK can you help on this? |
@truong-hua , Hi! |
Hi @ZigzagAK do you know is it true that if we can keep the upstream in a consistent sorted order, this module will work well with hash load balancing? If so, I think I can try to optimize the module a little bit to support it. It would be great if you can help to review. |
@ZigzagAK can you support me on this question so we can try to implement it? It would be great if this module can support the hash load balancing. |
We are facing a weird problem that the upstream route request to different destination in different nodes.
We are running a 3 nginx nodes cluster with an upstream like this
We have checked by added some header like
add_header X-Hostname $hostname;
and the load balancer may route the request to different target. We check the upstream status inhealthcheck/status
and seem like the order of the server list also matter. On the same order, it always route to the same destination but the nginx with a different order of server list in upstream will route the request to another destination which is not what a hash algorithm balancer should do.I think this module should keep the server list in a certain order?
The text was updated successfully, but these errors were encountered: