Is it possible to configure keepalived in such a way?
In normal state VIP_1 assigned to SERVER_1 and VIP_2 assigned to SERVER_2
On server failure all VIP's going to working server, and after failed server becomes live we don't migrate his VIP back to him, we need to do it manual due to some content-replication reasons.
configuration at the moment:
#SERVER_1
vrrp_sync_group VG1 {
group {
content
}
}
vrrp_instance content {
state BACKUP
interface eth1
virtual_router_id 1
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 1212
}
virtual_ipaddress {
192.168.100.111/24
}
}
# SERVER_2
vrrp_sync_group VG1 {
group {
content
}
}
vrrp_instance content {
state BACKUP
interface eth1
virtual_router_id 1
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 1212
}
virtual_ipaddress {
192.168.100.111/24 }
}