! Configuration File for keepalived
global_defs {
#notification_email {
# acassen
#}
#notification_email_from [email protected]
#smtp_server 192.168.200.1
#smtp_connect_timeout 30
router_id LVS_DEVEL
}
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
# nopreempt
priority 100
advert_int 5
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
211.147.***.**
}
}
virtual_server 192.168.1.200 80{
delay_loop 6
lb_algo rr
#lb_kind NAT
lb_kind DR
persistence_timeout 10
protocol TCP
#sorry_server 192.168.200.200 1358
real_server 127.0.0.1 80{
weight 1
TCP_CHECK {
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
connect_port 80
}
}
}
Keepalived成功过的配置
猜你喜欢
转载自charispeng.iteye.com/blog/2312870
今日推荐
周排行