红联Linux门户
Linux帮助

redhat6 keepalived+Tomcat高可用

发布时间:2013-08-22 11:58:25来源:红联作者:qhuan30
redhat6 keepalived+Tomcat高可用。
当主备keepalived、Tomcat服务都正常的情况下,访问虚拟Ip,IE上显示的web页面会轮询,在没有配置LVS的情况下。
我要的结果是在都正常的情况下,只要一台正常工作,一台是休息。怎么会轮询?
大家帮忙看看我的配置是否有问题,还是我理解上有问题?
主keepalived配置
global_defs {
notification_email {
acassen@firewall.loc
failover@firewall.loc
sysadmin@firewall.loc
}
notification_email_from Alexandre.Cassen@firewall.loc
smtp_server 192.168.200.1
smtp_connect_timeout 30
}

vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 100
advert_int 5

authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.1.125
}
}
备keepalived配置
global_defs {
notification_email {
acassen@firewall.loc
failover@firewall.loc
sysadmin@firewall.loc
}
notification_email_from Alexandre.Cassen@firewall.loc
smtp_server 192.168.200.1
smtp_connect_timeout 30
}

vrrp_instance VI_1 {
state BACKUP
interface eth0
virtual_router_id 51
priority 90
advert_int 5
opreempt
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.1.125
}
}
文章评论

共有 0 条评论