- 论坛徽章:
- 0
|
keepalived和heartbeat比较哪个做HA好, 稳定性,并发压力方面.
因为keepalived也有HA功能,如何两个一起用.在keepalived配置文件里如何关掉HA功能,我删掉HA的配置再启动keepalived后,不能连通虚IP
以下是我的配置文件,想知道keepalived和heartbeat如何结合使用
! Configuration File for keepalived
global_defs {
notification_email {
acassen@firewall.loc
failover@firewall.loc
sysadmin@firewall.loc
}
notification_email_from Alexandre.Cassen@firewall.loc
smtp_server 127.0.0.1
smtp_connect_timeout 30
router_id LVS_DEVEL
}
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
10.10.10.1
}
}
virtual_server 10.10.10.1 80 {
delay_loop 5
lb_algo wlc
lb_kind DR
persistence_timeout 3
protocol TCP
real_server 10.10.10.2 {
weight 3
TCP_CHECK {
connect_timeout 10
connect_port 80
}
}
real_server 10.10.10.3 {
weight 3
TCP_CHECK {
connect_timeout 10
connect_port 80
}
}
} |
|