An hashing load-balancer for nginx
C PHP Shell
Latest commit 859257d Aug 16, 2014 @evanmiller Tweak markdown
Permalink
Failed to load latest commit information.
t
CHANGES
CREDITS Support for servers marked "down". Jun 3, 2010
README.md Tweak markdown Aug 16, 2014
config
ngx_http_upstream_hash_module.c add specified upstream hash module structure to avoid patch for nginx… Jun 14, 2013

README.md

NOTE: This module is obsolete as of Nginx 1.7.2, which includes the hash directive. This repository remains for historical interest only.

ngx_http_upstream_hash_module

Installation:

cd nginx-0.7.62 # or whatever
./configure --add-module=/path/to/this/directory
make
make install

Usage:

upstream backend {
    ...
    hash        $request_uri;
    hash_again  10;          # default 0
}

Works the same on 32-bit and 64-bit systems.

See http://wiki.nginx.org/NginxHttpUpstreamRequestHashModule for more details.

Questions/patches to Evan Miller, emmiller@gmail.com.