Last active
August 29, 2015 14:07
-
-
Save jfrost/7bd1ad4cd487098105ca to your computer and use it in GitHub Desktop.
pgpool2 watchdog config with sudo and ip addr instead of ifconfig
This file contains hidden or 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
# Watchdog | |
#------------------------------------------------------------------------------ | |
use_watchdog = on | |
delegate_IP = '10.10.10.100' | |
wd_hostname = '10.10.10.21' | |
wd_port = 9000 | |
ifconfig_path = '/usr/bin' | |
arping_path = '/usr/bin' | |
if_up_cmd = 'sudo ip addr add $_IP_$ dev eth0' | |
if_down_cmd = 'sudo ip addr del $_IP_$ dev eth0' | |
arping_cmd = 'sudo arping -U $_IP_$ -w 1' | |
wd_interval = 3 | |
other_pgpool_hostname0 = '10.10.10.22' | |
other_pgpool_port0 = 5432 | |
other_wd_port0 = 9000 |
This file contains hidden or 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
postgres ALL=(ALL) NOPASSWD:/usr/bin/arping,/bin/ip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment