upstream 模块
==========================================
与 proxy 模块结合使用的模块中,最常用的当属upstream模块。
upstream模块可定义一个新的上下文,它包含了一组upstream服务器,
这些服务器可能被赋予了不同的权重、不同的类型甚至可以基于维护等原因被标记为down。
示例:==================
upstream mywebs {
ip_hash;
server 192.168.10.61 weight=5 max_fails=3 fail_timeout=10s;
server 192.168.10.62 weight=5 max_fails=3 fail_timeout=10s;
}
location / {
proxy_pass http://mywebs;
proxy_redirect default;
}
upstream模块常用的指令有:==============
负载均衡算法 :
=