I have a master server and a backup server that share a floating IP use keepalived for failover. I haven't explicitly defined any health checks, so I assume that the backup server grabs the floating IP and transitions to master status whenever it hasn't received any VRRP advert packets from the master service for some period of time.

We appear to have intermittent network connectivity issues between the two servers, so the backup often makes superfluous transitions to master. I would like to adjust the timeout for advert packets so the backup is less sensitive to network blips. From the documentation (http://www.keepalived.org/pdf/UserGuide.pdf), we have:

  • advert_int, but that looks like it just changes the broadcast frequency, and
  • delay_loop, which specifies "the interval between checks", but I'm not sure whether it applies to advert packets or just health checks.

Is what I'm trying to do possible? If so, which configuration option do I use?


You have to adjust "advert_int".

Transit from the MASTER to the BACKUP is triggered when the BACKUP server doesn't recieve the VRRP advertisment from the MASTER for 3x the period defined in the "advert_int" option (3 * advert_int).

| improve this answer | |
  • 1
    Thank you! I found a reference. Check out the definition of Master_Down_Interval in the RFC – prolibertas May 9 '17 at 17:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.