Upstream Ketama CHash

Description

usptream_ketama_chash module - a load balancer which provides upstream load distribution by hashing a configurable variable using ketama consistent hashing algorithm.

Note

This module is not distributed with the NGINX source. See the installation instructions.

Directives

hash

Syntax:ketama_chash $variable
Default:none
Context:upstream

Enables upstream ketama consistent hashing of $variable.

Synopsis

upstream backend {
    ...
    ketama_chash    $uri;
}

Installation

This module is not distributed with the NGINX source. You can download the request_hash module from Github

cd nginx-*version*
./configure --add-module=/path/to/this/directory
make
make install

Bugs

Send bug reports to FengGu