]> git.kaiwu.me - nginx.git/commit
Upstream hash: limited number of tries in consistent case.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 5 Oct 2017 14:42:59 +0000 (17:42 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 5 Oct 2017 14:42:59 +0000 (17:42 +0300)
commita10ec2db91b448029968025d23155e9c383f522d
treeb0b3d821f3be7d46743917770fd7655ab4785ca5
parent3a2ca34548ab5d260d9d3de710ff652cf00cc0f5
Upstream hash: limited number of tries in consistent case.

While this may result in non-ideal distribution of requests if nginx
won't be able to select a server in a reasonable number of attempts,
this still looks better than severe performance degradation observed
if there is no limit and there are many points configured (ticket #1030).
This is also in line with what we do for other hash balancing methods.
src/http/modules/ngx_http_upstream_hash_module.c
src/stream/ngx_stream_upstream_hash_module.c