Created
March 19, 2014 17:16
-
-
Save jayjanssen/9646544 to your computer and use it in GitHub Desktop.
Basic Keepalived and PXC setup
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
| vrrp_script chk_pxc { | |
| script "/usr/bin/clustercheck" | |
| interval 1 | |
| } | |
| vrrp_instance PXC { | |
| state MASTER | |
| interface eth1 | |
| virtual_router_id 51 | |
| priority 100 | |
| nopreempt | |
| virtual_ipaddress { | |
| 192.168.70.100 | |
| } | |
| track_script { | |
| chk_pxc | |
| } | |
| notify_master "/bin/echo 'now master' > /tmp/keepalived.state" | |
| notify_backup "/bin/echo 'now backup' > /tmp/keepalived.state" | |
| notify_fault "/bin/echo 'now fault' > /tmp/keepalived.state" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment