Seldon Install: keepalived for core-nN
Add extra features like these:
yum install keepalived -y
Enable non-local IPv4 binds on all core nodes
echo "net.ipv4.ip_nonlocal_bind = 1" >> /etc/sysctl.conf
sysctl -p
/etc/keepalived/keepalived.conf
vrrp_instance brstorage {
interface brstorage
virtual_router_id 30
virtual_ipaddress {
10.30.3.9/16
}
state MASTER
priority 100 # core-n1 = 100 (master)
}
vrrp_instance brstorage {
interface brstorage
virtual_router_id 30
virtual_ipaddress {
10.30.3.9/16
}
state BACKUP
priority 99 # core-n2 = 99 (backup-n1)
}
vrrp_instance brstorage {
interface brstorage
virtual_router_id 30
virtual_ipaddress {
10.30.3.9/16
}
state BACKUP
priority 98 # core-n3 = 98 (backup-n2)
}
vrrp_instance brstorage {
interface brstorage
virtual_router_id 30
virtual_ipaddress {
10.30.3.9/16
}
state BACKUP
priority 97 # core-n4 = 97 (backup-n3)
}
vrrp_instance brstorage {
interface brstorage
virtual_router_id 30
virtual_ipaddress {
10.30.3.9/16
}
state BACKUP
priority 96 # core-n5 = 96 (backup-n4)
}
vrrp_instance brstorage {
interface brstorage
virtual_router_id 30
virtual_ipaddress {
10.30.3.9/16
}
state BACKUP
priority 95 # core-n6 = 95 (backup-n5)
}
systemctl enable keepalived.service
systemctl restart keepalived.service