Menu

#4 ha_suspend problems

open
nobody
None
5
2006-05-18
2006-05-18
Mike F
No

The ha_suspend option set for a virtual server doesn't
seem to stop healthchecking for a keepalived daemon
initially brought up in a VRRP backup state.

Example config on a keepalived backup server:
-Master has same config but the VRRP priority is 110
and has a different router_id
-Master has 10.11.11.2/24 on eth0 and 10.10.10.2/24 on eth1
-Slave has 10.11.11.3/24 on eth0 and 10.10.10.3/24 on eth1

-10.10.10.0/24 is routed to 10.11.11.1 from an outside
router

global_defs {

router_id llb2

delay_loop 5

notification_email {

example@email.com
}

notification_email_from loadbalancer@email.com

smtp_server 10.11.11.42

smtp_connect_timeout 20

}

vrrp_sync_group ALL {

group {

eth0

eth1

}

}

vrrp_instance eth0 {

nopreempt

interface eth0

virtual_router_id 51

priority 100

advert_int 1

authentication {

auth_type PASS

auth_pass foo

}

virtual_ipaddress {

10.11.11.1
}

}

vrrp_instance eth1 {

nopreempt

interface eth1

virtual_router_id 52

priority 100

advert_int 1

authentication {

auth_type PASS

auth_pass foo

}

virtual_ipaddress {

10.10.10.1

10.10.10.10

}

}

virtual_server 10.10.10.10 80 {
lvs_sched rr
lvs_method NAT
ha_suspend
protocol TCP
delay_loop 5
real_server 10.10.10.11 80 {
TCP_CHECK {
connect_timeout 5
connect_port 80
}
}
real_server 10.10.10.12 80 {
TCP_CHECK {
connect_timeout 5
connect_port 80
}
}
}

Discussion


Log in to post a comment.