new patch: upstream consist hash patch

i_amok i_amok iamokcn at gmail.com
Thu Jun 11 16:04:41 MSD 2009


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


patch method:

#patch nginx
cd nginx-0.7.17
patch -p1 < ../nginx.path

#patch upstream hash
cd nginx_upstream_hash-0.3
patch -p1 < ../upstream_hash.path

#download ketama-0.1.1.tar.bz2
cd ketama/libketama
gcc -fPIC -O3 -c md5.c
gcc -shared -o libmd5.so md5.o
cp libmd5.so /usr/local/lib
cp md5.h /usr/local/include

#in case you maybe need edit /etc/ld.so.conf  to add the
/usr/local/lib path , then ldconfig



ps: thank for Evan Miller give me help:)





More information about the nginx mailing list