大网数据广告活动
服务器运维问答

keepalived: adjusting timeout for VRRP advert packets

· 52CE 我爱测

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 s…

问题原文

原帖链接 · prolibertas · CC BY-SA 3.0

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?

已采纳解答

原帖链接 · user373333 · CC BY-SA 3.0

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

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-03-21)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。