这是我目前的上游定义
upstream mybackend {
server cache-server;
server app-server-1 backup;
server app-server-2 backup;
}
每个请求都转到缓存服务器,当它关闭时,请求将转到app-server-1,而不会在app-server-1和-2之间进行平衡.
有可能做这样的事吗?
upstream mybackend {
server cache-server;
server app-server-cluster backup;
}
upstream app-server-cluster{
server app-server-1;
server app-server-2;
}
…当缓存服务器出现故障时,Nginx会占用app-server-cluster并在1到2之间取得平衡?