About
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.
Setup
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
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 200
advert_int 1
virtual_ipaddress {
192.168.1.3 dev eth0
}
}
On the "secondary" master
vrrp_instance VI_1 {
state BACKUP
interface eth0
virtual_router_id 51
priority 100
advert_int 1
virtual_ipaddress {
192.168.1.3 dev eth0
}
}
Activate VRRP
To activate VRRP, run the following command:
# chkconfig keepalived on
Comments
0 comments
Please sign in to leave a comment.