FAQ

Page Discussion History

Difference between revisions of "HttpUpstreamKetamaCHashModule"

(Synopsis)
 
(One intermediate revision by one user not shown)

Latest revision as of 07:48, 30 April 2014

Contents

ngx_http_upstream_hash_module

This module is not distributed with the Nginx source. Installation instructions are Installation below.

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

Directives

hash

syntax ketama_chash $variable

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 .