标签:.com keepaliv check rtu time syn def try vip
!configuration file for keepalived#vip1
vrrp_instance VI_1{
state MASTER
interface eth0
lvs_sync_daemon_interface eth0
virtual_router_id 51
priority 100
advert_int 5
nopreempt
authentication {
auth_tpye PASS
auth_pass 123456
}
virtual_ipaddress {
192.168.189.288
}
}
#virtual_server & real_server configuration
virtual_server 192.168.189.288 80 {
delay_loop 6
lb_algo wrr
lb_kind DR
persistence_timeout 60
protocal TCP
real_server 192.168.189.128 80 {
weight 100
TCP_CHECK {
connect_timeout 10
nb_get_retry 3
delay_before_retry 3
connect_port 80
}
}
real_server 192.168.189.129 80 {
weight 100
TCP_CHECK {
connect_timeout 10
nb_get_retry 3
delay_before_retry 3
connect_port 80
}
}
}
configuration file for lvs+keepalived
标签:.com keepaliv check rtu time syn def try vip
原文地址:http://blog.51cto.com/efoni/2149496