工作 一般 要不 借助redis 要不就是 nginx 使用ip hash 配置做调整
upstream nginx.gaoxin.com
{
server 192.168.74.235:80;
server 192.168.74.236:80;
ip_hash;
}
server
{
listen 80;
location /
{
proxy_pass
http://nginx.gaoxincom;
}
}
工作 一般 要不 借助redis 要不就是 nginx 使用ip hash 配置做调整
upstream nginx.gaoxin.com
{
server 192.168.74.235:80;
server 192.168.74.236:80;
ip_hash;
}
server
{
listen 80;
location /
{
proxy_pass
http://nginx.gaoxincom;
}
}