Skip to content

Instantly share code, notes, and snippets.

@hjkp
Created December 13, 2008 04:57
Show Gist options
  • Save hjkp/35398 to your computer and use it in GitHub Desktop.
Save hjkp/35398 to your computer and use it in GitHub Desktop.
#
# master configuration
#
global_defs {
notification_email {
[email protected]
}
notification_email_from [email protected]
smtp_server 127.0.0.1
smtp_connect_timeout 30
lvs_id lvs1prod
}
vrrp_sync_group vg_1 {
group {
vi_1
vi_int_gw
}
}
#External VIP vrrp instance
vrrp_instance vi_1 {
state master
interface eth1
lvs_sync_daemon_interface eth1
virtual_router_id 50
priority 150
#vrrp voting interval (seconds)
advert_int 1
authentication {
auth_type PASS
auth_pass Kndf3421cfQpufdhnaSDRF!ldfanEqpcvzpsy
}
virtual_ipaddress {
70.42.170.20
70.42.170.50
}
}
#Internal VIP vrrp instance
vrrp_instance vi_int_gw {
state master
interface eth0
lvs_sync_daemon_interface eth0
virtual_router_id 52
priority 150
advert_int 1
authentication {
auth_type PASS
auth_pass Kndf3421cfQpufdhnaSDRF!ldfanEqpcvzpsy
}
virtual_ipaddress {
10.1.1.1
}
}
virtual_server 70.42.170.50 80 {
delay_loop 10
lb_algo rr
lb_kind NAT
nat_mask 255.255.255.0
protocol TCP
real_server 10.1.1.42 80 {
weight 1
inhibit_on_failure
HTTP_GET {
url {
path /canary.html
digest eff5bc1ef8ec9d03e640fc4370f5eacd
}
connect_timeout 50
nb_get_retry 3
delay_before_retry 3
}
}
}
virtual_server 70.42.170.50 443 {
delay_loop 10
lb_algo rr
lb_kind NAT
nat_mask 255.255.255.0
protocol TCP
real_server 10.1.1.42 80 {
weight 1
inhibit_on_failure
SSL_GET {
url {
path /canary.html
digest eff5bc1ef8ec9d03e640fc4370f5eacd
}
connect_timeout 50
nb_get_retry 3
delay_before_retry 3
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment