VRRP can be used in this setup to have one DNS-name and one IP address that is primary linked to one of the master servers and if the primary master for some reason is unavailable VRRP will automatically detect this and send you to the secondary master.
To enable VRRP on you master servers follow the steps below.
In this example we have two masters that we want to use VRRP with.
The VRRP IP will be 192.168.1.3 and we will bind that IP to the network interface eth0.
The IP and interface will have to change to match your network configuration.
If you already use VRRP in your network, make sure that you use the correct virtual_router_id.
Edit the file /etc/keepalived/keepalived.conf
On the "primary" master
On the "secondary" master
To activate vrrp run the following command:
# chkconfig keepalived on