一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

NginxHttpUpstreamRequestHashModule

 thy 2009-08-20
ngx_http_upstream_hash_module

This module is not distributed with the Nginx source. Installation instructions are [#installation below] .

The upstream_hash module provides simple upstream load distribution by hashing a configurable variable (e.g., the request URI, incoming HTTP headers, or some combination). Example usage:

upstream backend {
server server1;
server server2;
hash   $request_uri;
}

Here, Nginx will choose server1 or server2 by hashing the request URI ($request_uri).

Edit section: Directives Directives

Edit section: hash hash

syntax hash $variable

context upstream

Enables upstream hashing of $variable.

When present, the "server" directives cannot take any arguments ("weight", "max_fails", etc.).

Edit section: hash_again hash_again

syntax hash_again number

default 0

context upstream

Number of times to rehash the value and choose a different server if the backend connection fails. Increase this number to provide high availability.

Edit section: Installation Installation

This module is not distributed with the Nginx source. You can download the request_hash module here: File:Nginx upstream hash-0.3.tar.gz

After extracting, you will need to patch the latest Nginx source (0.7.11 as of this writing). Run patch like this:

cd nginx-0.7.11
patch -p0 < /path/to/upstream/hash/directory/nginx.patch

Then add the following option to your Nginx ./configure command:

--add-module=path/to/upstream/hash/directory

Then "make" and "make install" as usual.

Edit section: The hash algorithm The hash algorithm

As of 0.3, the hash algorithm and the failover algorithm use a CRC-32 computation compatible with PECL Memcache.

Edit section: Changes Changes

. * 0.3: Feature: PECL Memcache compatibility. Change: Removed "hash_method" directive.

Edit section: Bugs Bugs

Send bug reports to Evan Miller .

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多

    日本东京热视频一区二区三区| 国产亚洲欧美自拍中文自拍| 人妻少妇久久中文字幕久久| 日韩中文高清在线专区| 激情偷拍一区二区三区视频| 好吊日视频这里都是精品| 久久99一本色道亚洲精品| 精品人妻精品一区二区三区| 成人免费高清在线一区二区| 久久精品国产99精品最新| 日本女优一区二区三区免费| 麻豆欧美精品国产综合久久| 好吊日成人免费视频公开| 国产三级视频不卡在线观看| 91日韩在线观看你懂的| 老司机精品福利视频在线播放| 99久久免费中文字幕| 亚洲中文字幕乱码亚洲| 厕所偷拍一区二区三区视频| 99久免费精品视频在线观| 欧美日韩在线第一页日韩| 亚洲熟女乱色一区二区三区| 日韩欧美综合在线播放| 91麻豆精品欧美一区| 99久久国产精品亚洲| 国产精品不卡高清在线观看| 国产在线日韩精品欧美| 熟女免费视频一区二区| 91亚洲人人在字幕国产| 九九热在线视频精品免费| 国产不卡视频一区在线| 99久久精品免费看国产高清| 大香蕉精品视频一区二区| 欧美丰满人妻少妇精品| 欧美日韩免费黄片观看| 亚洲中文字幕高清乱码毛片| 中国美女草逼一级黄片视频| 中文字幕有码视频熟女| 日韩特级黄色大片在线观看| 日韩精品一区二区一牛| 日韩午夜福利高清在线观看|