Heartbeat + LVS + ldirectord

时间:2012-10-19 04:39:47
【文件属性】:
文件名称:Heartbeat + LVS + ldirectord
文件大小:32KB
文件格式:DOC
更新时间:2012-10-19 04:39:47
Heartbeat + LVS + ldirectord.doc Heartbeat + LVS + ldirectord构建可伸缩网络服务 ... by srsman ... 2 月前 ... 149次点击 Heartbeat + LVS + ldirectord构建可伸缩网络服务 网络环境: 机器数量:2 操作系统:Centos 5.0,Centos 5.2 机器名:centos50,centos52 机器IP: Centos 5.0: 10.2.20.15 Centos 5.2: 10.2.20.88 虚拟IP: 10.2.20.17 需要的软件: httpd:提供web服务 LVS:对web服务器按照一定的规则进行转发 Heartbeat:提供ip漂移服务,在主服务器宕机后,备份服务器接管虚拟ip ldirectord:提供lvs控制,监控真实服务器,出现问题后,对轮循列表进行更新,去除出现问题的服务器 机器角色: centos50:主负载均衡器+真实服务器 centos52:备份负载均衡器+真实服务器 实现功能: 两台服务器做为负载均衡器进行主从互备,并充当真实服务器功能,对外提供服务,当真实服务器出现问题后,主负载均衡器能够检测到,并从负载均衡轮循列表清除有问题的真实服务器。 当主负载均衡器出现问题后,备份负载均衡器能够接管负载均衡服务,使服务不受影响。 1.最小化安装操作系统; 2.在两台机器上配置机器名 在/etc/hosts文件中添加主机名记录,确保两台机器能够通过主机名相互ping通 3.安装httpd,heartbeat,ldirectord centos 5.2内核已经包含lvs,不用安装,只安装httpd,heartbeat,ldirectord yum install httpd,heartbeat,heartbeat-ldirector

网友评论

  • 感谢分享 只有配置说明,没有安装包,遗憾