libmemcached weighted ketama algorithm for memcached_pass
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
config
ngx_http_upstream_consistent_module.c

README

Nginx Upstrem Consistent Balancer
=================================

This is balancer meant to be used in conjuction with memcached_pass. 
It uses the ketama algorithm using md5 for hasing both the server and key.
Confirmed compatible with the libmemcached implementation.

Configuration
-------------

Just add ``consistent`` to the upstream block. If you want to modify the
weights of a server, just add ``weight`` to the server definition.

::
    upstream memcache_cluster {
        consistent;
        server 127.0.0.1:11211;
        server 10.0.1.2:11211;
        server 10.0.1.3:11212;
    }