atom feed3 messages in ru.sysoev.nginxRe: new patch: upstream consist hash ...
FromSent OnAttachments
i_amok i_amokJun 11, 2009 5:04 am 
Maxim DouninJun 11, 2009 6:13 am 
i_amok i_amokJun 11, 2009 7:55 am 
Subject:Re: new patch: upstream consist hash patch
From:i_amok i_amok (iamo@gmail.com)
Date:Jun 11, 2009 7:55:34 am
List:ru.sysoev.nginx

yes , thx for you remind, just let people know there is a option to do consistent hash for upstream hash module...:)

2009/6/11 Maxim Dounin <mdou@mdounin.ru>:

Hello!

On Thu, Jun 11, 2009 at 08:04:41PM +0800, i_amok i_amok wrote:

hi,all

      i has patch the upstream hash module to support consist hash. below is patch file and patch method.

http://upstream-consist-hash.googlecode.com/files/upstream_hash.path http://upstream-consist-hash.googlecode.com/files/nginx.path

As far as I see patch to nginx itself isn't really needed.  You may easily keep everything within the module.

And just a note: there is Tomash Brechko's memcached_hash module that does ketama consistent hashing among others.  As far as I know it works well.  See

http://openhack.ru/nginx-patched/wiki/MemcachedHash

for details.