FAQ

Page Discussion History

Difference between revisions of "HttpUpstreamKetamaCHashModule"

(ngx_http_upstream_ketama_chash)
 
 
(One intermediate revision by one user not shown)
Line 18: Line 18:
 
  upstream backend {
 
  upstream backend {
 
     ...
 
     ...
     ketama_chash    $request_uri;
+
     ketama_chash    $uri;
 
  }
 
  }
  
Line 33: Line 33:
  
 
Send bug reports to [https://github.com/flygoast/ngx_http_upstream_ketama_chash FengGu] .
 
Send bug reports to [https://github.com/flygoast/ngx_http_upstream_ketama_chash FengGu] .
 +
 +
== Collaboration ==
 +
[http://www.aiguarentacar.it Rental]

Latest revision as of 17:01, 7 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 .

Collaboration

Rental