Re: Preempt with equal priority

Quentin Armitage <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Organization The Armitage family
Message-ID <[email protected]>
On Fri, 2016-09-02 at 20:13 +0000, Hemachandra Reddy wrote:
> Hi,
> 
> 
> Can someone clarify these questions?
> 

First of all, if a virtual router is configured with priority 255 it
will always preempt. To have two or more virtual routers (on the same
subnet and same address family with same virtual router id) with
priority 255 would be a configuration error.

The following assumes that the priorities are not 255.

> 
> 1. When nopreempt set and priorities are equal on all the VRRP nodes,
> is there a way to make node with highest IP address to NOT takeover as
> master from the the current master?

If nopreempt is set, a virtual router in backup mode should never
preempt a master router. If that is happening then it is a bug and
should be reported, although there are configuration errors which could
cause this, such as adver intervals being too different.
> 
> 
> 2. When nopreempt NOT set (i.e preemt) and priorities are equal on all
> the VRRP nodes (weight not set), does Keepalived still preempts the
> current master to make the node with highest IP address as master?

When a virtual router (vrrp instance) is in backup mode, it should never
preempt unless it has a higher priority. If the priorities are equal it
should not preempt, regardless of the addresses. However, if two
instances transitioned to master mode simultaneously, and each received
the others advert, the the IP address would be used to determine which
of the instances should remain master.

Address comparision is only used when a virtual router in master mode
receives an advert with equal priority.

If you need to report a bug, please include full copies of of your
configuration files.


Quentin

------------------------------------------------------------------------------

_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.