Virtual Router Redundancy Protocol (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 is unavailable VRRP will automatically detect this and send you to the secondary master.
Important note: ITRS does not officially support this procedure.
To enable VRRP on your 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 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