milton123's blog

lvs + keepalived +apache(httpd)负载均衡,始终没成功,求指点啊

centos6.5+ keepalived-1.2.2 +ipvsadm-1.26
master:202.112.152.253
slave: 202.112.152.183
VIP: 202.112.152.130
RealServer1:202.112.152.162
RealServer2:202.112.152.158

以下是lvs-》master中/etc/keepalived/keepalived.conf文件
global_defs {
router_id LVS_DEVEL //负载均衡器标识,同一网段内,可以相同
}

vrrp_sync_group VGM { //定义一个vrrp组
group {
VI_1
}
}

vrrp_instance VI_1 { //定义vrrp实例
state MASTER //主LVS是MASTER,从的BACKUP
interface eth0 //LVS监控的网络接口
lvs_sync_daemon_interface eth0

Subscribe to RSS - milton123's blog
randomness