! Configuration File for keepalived
global_defs {
notification_email {
mail@qq.com
}
notification_email_from wenbo.zhang@3g2win.com
smtp_server smtp.exmail.qq.com
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 123456
}
virtual_ipaddress {
192.168.1.100
}
}
virtual_server 192.168.1.100 8080 {
delay_loop 6
lb_algo rr
lb_kind DR
nat_mask 255.255.255.255
persistence_timeout 1
protocol TCP
real_server 192.168.1.8 8080 {
weight 1
HTTP_GET {
url {
path /test/jsp/2.jsp
digest c2b63159e701960a9eef44a302b56074
}
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
}
}
real_server 192.168.1.9 8080 {
weight 1
HTTP_GET {
url {
path /test/jsp/2.jsp
digest c2b63159e701960a9eef44a302b56074
}
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
}
}
}