负载均衡、高可用性与本地网络服务全解析
1. 负载均衡与高可用性
在服务器运行过程中,负载均衡和高可用性是保障服务稳定和高效的重要手段。
1.1 负载均衡操作示例
首先来看负载均衡的实际操作。在日志中可以看到如下信息:
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)
这表明系统对服务器进行了调整,删除了备用服务器 127.0.0.1:80 ,并添加了新的真实服务器 70.253.158.45:80 ,权重设为 1。
接着,在 web1 和 web2 上检查 Apache 访问日志,负载均衡器会每隔 checkinterval 秒请求 director.html :
70.253.158.44 - - [11/Sep/2006:22:49:37 -0500] "GET /director.html
超级会员免费看
订阅专栏 解锁全文
170万+

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



