FAQ

Page Discussion History

Difference between revisions of "HttpUpstreamKetamaCHashModule"

(ngx_http_upstream_ketama_chash)
 
 
(2 intermediate revisions by 2 users not shown)
Line 18: Line 18:
 
  upstream backend {
 
  upstream backend {
 
     ...
 
     ...
     ketama_chash    $request_uri;
+
     ketama_chash    $uri;
 
  }
 
  }
  

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 .