lua-resty-checkups
lua-resty-checkups copied to clipboard
Request distributed Uneven with consistent_hash method
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?
Can you share your 10w cid?We will check if there is something wrong.
@xiaoxuanzi why consistent method come to equal for requests