You are not logged in.

#1 2011-08-25 05:36:25

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

keepalived vrrp preempt delay

Does anyone know the syntax/option for keepalived to specify a delay before preempting the current master when the master "fails"?

I have a pair of firewalls where the backup tries taking over a little too early because the master is very busy, the backup thinks it's dead. It only takes less than a second for it to detect that the master is OK though, so I just need it to wait 1 or 2 seconds before initiating a takeover.

Offline

#2 2011-08-25 10:42:45

zukka
Member
From: Bologna Italy
Registered: 2006-06-27
Posts: 26

Re: keepalived vrrp preempt delay

It seems there isn't the option you are searching for.
There's

# Seconds after startup until preemption
# (if not disabled by "nopreempt").
# Range: 0 (default) to 1,000
# NOTE: For this to work, the initial state of this
# entry must be BACKUP.
preempt_delay 300    # waits 5 minutes

that seems to apply only on daemon start.

Maybe trying to increase advert_int

 
# VRRP Advert interval, secs (use default)
 advert_int 1

so that the two firewalls talk to each other less frequently.

Offline

#3 2011-08-25 23:32:42

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: keepalived vrrp preempt delay

Yeah, I saw the preemt delay, which is exactly what I want, except not only at start up sad

I did try increasing advert_int to 3 and it made the whole setup incredibly unstable for some reason. It immediately started thrashing between MASTER and BACKUP states on the box that should have been BACKUP neutral

Offline

#4 2011-08-29 07:48:56

zukka
Member
From: Bologna Italy
Registered: 2006-06-27
Posts: 26

Re: keepalived vrrp preempt delay

maybe you should try asking the official mailing list...

Offline

Board footer

Powered by FluxBB