Skip to content
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

Request distributed Uneven with consistent_hash method #9

Open
xiaoxuanzi opened this issue Feb 20, 2017 · 2 comments
Open

Request distributed Uneven with consistent_hash method #9

xiaoxuanzi opened this issue Feb 20, 2017 · 2 comments

Comments

@xiaoxuanzi
Copy link

xiaoxuanzi commented Feb 20, 2017

I did a test found Request distributed Uneven with consistent_hash method.
upstream test have two servers:
upstream test{
server 192.168.46.111:80;
server 192.168.46.110:80;
}

hash arguments is cid.
I use 10w cid to test.
I found that the request deliver to server 192.168.46.111:80 is about 89036 .
More than eighty percent

BUT i also test original nginx with consistent method,the number of request forward to two server is equality.

DO YOU encounter the same problem? OR What is wrong with me?

@yejingx
Copy link
Contributor

yejingx commented Mar 9, 2017

Can you share your 10w cid?We will check if there is something wrong.

@hy05190134
Copy link

hy05190134 commented Feb 5, 2018

@xiaoxuanzi why consistent method come to equal for requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants