- 论坛徽章:
- 0
|
本帖最后由 luxinjun 于 2012-03-28 17:37 编辑
大家好,现在碰到一个问题,keepalived做负载均衡不成功,系统centos5.4 keepalived1.1.18,安装完成后配置了keepalived.conf文件,启动keepalived后,ip add能看到加载了VIP地址,但是用ipvsadm -Ln 就是看不到vip和下面real server地址信息,具体如下:
一般如果读取了配置信息的话,VIP地址和realserver地址都应该有显示的。现在这里没有
keepalived配置文件:
! Configuration File for keepalived
global_defs {
router_id LVS_DEVEL_1
}
vrrp_instance VI_1 {
state MASTER
interface eth0
lvs_sync_daemon_interface eth0
virtual_router_id 155
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
10.10.10.163
}
}
virtual_server 10.10.10.163 80 {
delay_loop 2
lb_algo wrr
lb_kind DR
persistence_timeout 5
protocol TCP
real_server 10.10.10.151 80 {
weight 1
TCP_CHECK {
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
connect_port 80
}
}
real_server 10.10.10.152 80 {
weight 1
TCP_CHECK {
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
connect_port 80
}
}
} |
|