I've been researching about Keepalived Virtual IP to make ProxySQL/MaxScale highly available and came across the concept of Virtual IP. All the articles that I've read just mentions a random Virtual IP directly but in no place I was able to find out how it is configured? Like where do we get that IP from?
Here's how keepalived configuration file looks like -
vrrp_instance VRRP_1 {
state BACKUP
interface eth0
virtual_router_id 101
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass sometext
}
virtual_ipaddress {
192.0.2.123
}
}
Like here they used the IP 192.0.2.123, but how are we supposed to assign a virtual IP? Any articles or suggestions would be helpful!