首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > [老]一个nginx模块添加使用cookie的上游服务器的持久性

[老]一个nginx模块添加使用cookie的上游服务器的持久性

资 源 简 介

DEPRECATED see https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/overview This project has been forked and will no longer be updated. See https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/overview for updates. Old Description When dealing with several backend servers, it"s sometimes useful that one client (browser) is always served by the same backend server (for session persistance for example). Using a persistance by IP (with the ip_hash upstream module) is maybe not a good idea because there could be situations where a lot of different browsers are coming with the same IP address (behind proxies) and the load balancing system won"t be fair. Using a cookie to track the upstream server makes each browser unique. When the sticky module can"t apply, it switchs back to the classic Round Robin or returns a "Bad Gateway" (depending on the no_fallback flag). Sticky module can"t apply when

文 件 列 表

nginx-sticky-module-1.1
LICENSE
ngx_http_sticky_module.c
config
ngx_http_sticky_misc.h
README
ngx_http_sticky_misc.c
docs
VIP VIP
0.176472s