[PATCH] Upstream hash: speedup consistent hash init

Wai Keen Woon waikeen.woon at onapp.com
Thu Feb 19 05:33:03 UTC 2015

On 2/18/2015 8:49 PM, Roman Arutyunyan wrote:
>> Note that in the original implementation, if there are points
>> with duplicate hash, only the first is kept. In this change, all
>> are included.
> This is the intended behaviour.  Consistent hash array is build over
> server entries, but not addresses resolved from them.  Duplicate points
> are ignored since most likely they refer to multiple addresses of
> the same host.
I see. I could add a loop to remove duplicate hashes and maybe adjacent 
points referencing the same server too. Or do you prefer to take some 
time to look into it in more detail first?

More information about the nginx-devel mailing list