[PATCH] Upstream: add consistent hash module

Maxim Dounin mdounin at mdounin.ru
Tue May 13 13:02:40 UTC 2014


Hello!

On Thu, May 08, 2014 at 03:52:24PM +0800, Jianjun Zheng wrote:

> usage example: cons_hash $request_uri;
> 
> Not only consistent hash is introduced as a load balancing, but also
> increase the hits of cache in upstream servers.
> 
> This modules is written according to round_robin, ip_hash
> and least_conn modules for upstream. So it inherits all the
> essential logic from them.

We are quite conservative at adding 3rd party modules into nginx  
base, sorry.  Though it may be good idea to add your module to the 
3rd party modules list at wiki, see here:

http://wiki.nginx.org/3rdPartyModules

I believe there are at least couple of consistent hash modules 
there already (and memcached_hash[1] seems to be not listed there, 
while it's oldest consistent hash module for nginx as far as I 
know).

[1] http://openhack.ru/nginx-patched/wiki/MemcachedHash

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx-devel mailing list