Hi,
I'm trying to set up a cluster with 2 directors that also are part of
the real server cluster and I use keepalived to handle the failover, but
keepalived keeps setting up the ipvs "routes" on the backup machine
which makes the traffic "loop". The load-balancing works when im not
running keepalived on the backup or on the master, but then i don't have
the failover...
Im running red hat 8.0 with the hidden patch applied, ipvs 1.0.4,
keepalived 1.0.0 as rpm from keepalived.org.
This is my configs:
master:
global_defs {
lvs_id lvs_test
}
vrrp_instance VI_1 {
interface eth0
state MASTER
lvs_sync_daemon_interface eth0
virtual_router_id 51
priority 150
advert_int 1
virtual_ipaddress {
192.168.2.221
}
debug
preempt
}
virtual_server 192.168.2.221 80 {
delay_loop 20
lb_algo wlc
lb_kind DR
ha_suspend
protocol TCP
real_server 192.168.2.220 80 {
weight 40
TCP_CHECK {
connect_timeout 3
}
}
real_server 192.168.2.194 80 {
weight 20
TCP_CHECK {
connect_timeout 3
}
}
}
backup:
global_defs {
lvs_id lvs_test2
}
vrrp_instance VI_1 {
interface eth0
state BACKUP
lvs_sync_daemon_interface eth0
virtual_router_id 51
priority 100
advert_int 1
virtual_ipaddress {
192.168.2.221
}
debug
preempt
}
virtual_server 192.168.2.221 80 {
delay_loop 20
lb_algo wlc
lb_kind DR
ha_suspend
protocol TCP
real_server 192.168.2.220 80 {
weight 40
TCP_CHECK {
connect_timeout 3
}
}
real_server 192.168.2.194 80 {
weight 20
TCP_CHECK {
connect_timeout 3
}
}
}
Many thanks in advance,
Jimmy Hedman
--
Jimmy Hedman South Pole AB
Phone: +46 8 51420420 Gelbjutarvägen 5
Fax: +46 8 51420429 SE - 17148 Solna
e-mail: jimmy.hedman@xxxxxxxxxxxx www.southpole.se
|