keepalived - multiple VRRP instances vs. 1 instance with multiple VIPs

high-availability, ip

Solution

In both cases, when the MASTER fails, all VIPs will fail over together, as expected in such a case.

On the other side, changing priority won't have the same impact: - with a single instance, changing priority makes all VIPs fail over - with one instance per VIP, changing priority makes the single VIP fail over

So the question to ask is: do you need to fail over a single VIP at a time?

Problem

I need keepalived to manage several Virtual IP addresses on the same network interface. I'm wondering, what are the advantages and disadvantages of having `keepalived` configured with different VRRP instances (let's say 1 VRRP instance per 1 Virtual IP) as oppose to have just one VRRP Instance with all Virtual IPs in it? I should mention that all of the Virtual IPs are on the same VLAN.

Original source