#设定负载均衡的服务器列表
upstream mysvr {
#weigth参数表示权值,权值越高被分配到的几率越大
server 192.168.105.27:8100 weight=1 max_fails=3 fail_timeout=30;
server 192.168.105.41:8100 weight=1 max_fails=3 fail_timeout=30;
}
server {
listen 8110;
location / {
proxy_pass http://mysvr;
}
}