使用 nginx 作为 HTTP 负载均衡器
介绍
负载均衡方法
默认负载均衡配置
http {
upstream myapp1 {
server srv1.example.com;
server srv2.example.com;
server srv3.example.com;
}
server {
listen 80;
location / {
proxy_pass http://myapp1;
}
}
}最少连接负载均衡
会话持久化
加权负载均衡
健康检查
进一步阅读
原文档
最后更新于