Created
August 24, 2017 11:27
-
-
Save thresheek/14d2d73c103223ba2d8b336642ddc38c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global_defs { | |
vrrp_version 3 | |
} | |
vrrp_script chk_manual_failover { | |
script "/usr/lib/keepalived/nginx-ha-manual-failover" | |
interval 10 | |
weight 50 | |
} | |
vrrp_script chk_nginx_service { | |
script "/usr/lib/keepalived/nginx-ha-check" | |
interval 3 | |
weight 50 | |
} | |
vrrp_instance VI_1 { | |
interface eth0 | |
priority 100 | |
virtual_router_id 51 | |
advert_int 1 | |
accept | |
unicast_src_ip 192.168.128.112 | |
unicast_peer { | |
192.168.128.111 | |
192.168.128.114 | |
} | |
virtual_ipaddress { | |
10.0.0.33 | |
} | |
track_script { | |
chk_nginx_service | |
chk_manual_failover | |
} | |
notify "/usr/lib/keepalived/nginx-ha-notify" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment