[*]server AIP:port weight=10 max_fails=3 fail_timeout=5s;
[*]server BIP:port weight=10 max_fails=3 fail_timeout=5s;
[*]server CIP:port weight=10 max_fails=3 fail_timeout=5s;
[*]server DIP:port weight=10 max_fails=3 fail_timeout=5s;
[*]server EIP:port weight=10 max_fails=3 fail_timeout=5s;
[*]}
[*]
[*]server {
[*] listen port;
[*] server_name yourdomain.com;
[*] ...
[*] location ~ \.*$ {
[*] proxy_pass http(s)://HA;
[*] ...
[*] }
[*] ...
[*]}复制代码 本帖最后由 wangcan45 于 2017-9-4 10:57 编辑
nginx里有个weight 参数 可以设置权重 你都设成一样的权重肯定不会负载更多 楼上正确答案
页:
[1]