负载均衡、高可用性与本地网络服务全解析
1. 负载均衡与高可用性
负载均衡和高可用性在服务器管理中至关重要。以Apache服务器为例,通过日志可以看到负载均衡器的操作,如删除备用服务器和添加真实服务器:
Sep 11 22:59:45 mail ldirectord[8543]: Deleted fallback server: 127.0.0.1:80
( x 70.253.158.44:80)
Sep 11 22:59:46 mail ldirectord[8543]: Added real server: 70.253.158.45:80
( x 70.253.158.44:80) (Weight set to 1)
在web1和web2上检查Apache访问日志,负载均衡器会每隔 checkinterval 秒请求 director.html :
70.253.158.44 - - [11/Sep/2006:22:49:37 -0500] "GET /director.html HTTP/1.1"
200 11 "-" "libwww-perl/5.803"
70.253.158.44 - - [11/Sep/2006:22:49:39 -0500] "GET /director.html HTTP/1.1"
200 11 "-" "libwww-perl/5.803"
在浏览器中访问虚拟站点URL
超级会员免费看
订阅专栏 解锁全文

被折叠的 条评论
为什么被折叠?



