Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a 3 nodes keepalived (K1 to K3) installed and receiving email notification.

The setup of keepalived is

  • K1
    • VI_50, priority 100
    • VI_51, priority 98
    • VI_52, priority 99
  • K2
    • VI_50, priority 99
    • VI_51, priority 100
    • VI_52, priority 98
  • K3
    • VI_50, priority 98
    • VI_51, priority 99
    • VI_52, priority 100

The idea is, when K1 failed, VI_50 will be catch up by K2, and if K2 failed, VI_51 will be catch up by K3, ect. they fail over in a clock fashions.

Everything seems ok, now, when I tried to shutdown K1 for a test, I receive emails as following

[K2] VRRP Instance VI_50 - Entering MASTER state
[K1] VRRP Instance VI_50 - Entering BACKUP state
.
.
[K3] VRRP Instance VI_51- Entering BACKUP state (Why this line?)
[K2] VRRP Instance VI_52- Entering BACKUP state (Why this line?)
.
.
[K2] VRRP Instance VI_50 - Entering BACKUP state
[K1] VRRP Instance VI_50 - Entering MASTER state

The first 2 and last 2 emails are understandable, but in the middle, there are a few emails from non-affecting nodes alerting non-affecting interface.

Any idea?

share|improve this question
1  
According the docs your priorities should be at least 50 apart (at least the preferred master should be +50 than the others). Try changing your priorities to 50, 100 and 150 and see if the behaviour persists. –  fukawi2 Apr 26 '13 at 7:36
    
Hi, thanks for the info first, I also get it should be at least 50 apart: keepalived.org/LVS-NAT-Keepalived-HOWTO.html, but just wondering why it is 50 but not 60, how it is calculated? As you know we use keepalived for HA, we want it to be deterministic and predictable... –  Ryan Apr 26 '13 at 16:41
    
I don't know the rational behind the reasoning, I know as much as you from reading the docs, sorry ;) –  fukawi2 Apr 26 '13 at 22:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.