session共享
根据用户的ip的hash绑定内部的服务器上
upstream jt{
ip_hash;
server 127.0.0.1:8091 weight=6;
server 127.0.0.1:8092 weight=3;
server 127.0.0.1:8093 backup;
}
服务器替换
upstream jt{
server 127.0.0.1:8091 weight=6 down;
server 127.0.0.1:8092 weight=3;
server 127.0.0.1:8093 backup;
}
今日事今日毕