Re: nopreempt and FAULT state - keepalived 1.2.7

"Paul Robert Marino" <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <[email protected]>
I don't know if this is a bug persay. I've been talking about this on the user list for a few years.

Essentially all of the howtos are a decade out of date and absolutly incorrect. I've been meaning to write a new one but haven't gotten around to it yet.

If it is a bug its an ancient one. You need to set the state to backup on both nodes and then the priorities will handle the the election.
when you set the state to master in the config it essentially forces the state to master. You can actually set a node to master with a lower priority and it will attempt to take over constantly this causes a loop nonstop failing over and failing back (A.K.A. The ping pong effect).

In all honesty I believe the option should be removed or be hidden and default to backup. Its usefully for testing purposes but in production you should always set the state to backup.
If you do that it will behave exactly as you expect it to.

-- Sent from my HP Pre3

----------
On Oct 16, 2013 18:20, Stefan Kärst <[email protected]> wrote:

Hi,

I'm using CentOS 6.4 and keepalived 1.2.7 (02/21,2013). I ran a lot of tests to see "nopreempt" working.

According to man page "nopreempt" only works if state is BACKUP. why is this the case?
If network link goes down the state changes to FAULT. If network links comes back keepalived becomes MASTER if it has
highest priority! this makes nopreempt kind of useless.

According to man page "state" doesn't matter a lot because of vrrp election. But, as I tested this with kvm guests it
DOES MATTER a lot. It effectivly starts keepalived e.g. in state MASTER which overrules "nopreempt".
Starting keepalived without "state" option in config file makes "nopreempt" working as excpected -> starting up in state
BACKUP, listen to vrrp and stay BACKUP because of "nopreempt".

As I could not figure out how to search in the list-archives I try this way. (why is a mailman list hosted at sf.net?? -
mailman has such a ... useful webinterface)
Where do I post bugs? sf.net project page seems out of date (files, bugs). I found a new bug which I want to post...


Thanks for reading.
Any answer would be much appreciated.

Regards
Stefan K.


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk

_______________________________________________
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.