You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If I set vrrp_garp_interval to a value greater than 0.001, then Keepalived does not send the expected number of GARP messages. With the configuration below, Keepalived sends only 2 GARP messages per VIP address although it should send 5 (viz vrrp_garp_master_repeat 5).
Quentin Armitage:
I have looked at the code and the code for handling the vrrp_garp_interval does not work properly.
When the GARP messages are being sent, the code checks to see if vrrp_garp_interval has elapsed since the previous GARP message on the relevant interface has been sent. If it has not, the address gets marked as needing to send a GARP message, and a timer is set up. However, if multiple GARPs need to be sent for an address, that information is lost and only one more GARP will be sent.
The reason it appears to work properly when you set vrrp_garp_interval to 0.001 is that when the code is sending the second, third etc garp message, that time has elapsed since the previous GARP message was sent on the same interface, and so it is sent straight away.
The code for handling this is quite horrible and does not scale well to large configurations (since I wrote the code I can criticise it!).
Expected behavior
Keepalived will send the configured/required number of GARP messages.
Describe the bug
If I set vrrp_garp_interval to a value greater than 0.001, then Keepalived does not send the expected number of GARP messages. With the configuration below, Keepalived sends only 2 GARP messages per VIP address although it should send 5 (viz vrrp_garp_master_repeat 5).
Quentin Armitage:
Expected behavior
Keepalived will send the configured/required number of GARP messages.
Keepalived version
keepalived-1.3.5-16.el7.x86_64
Keepalived v1.3.5 (03/19,2017), git commit v1.3.5-6-g6fa32f2
Copyright(C) 2001-2017 Alexandre Cassen, acassen@gmail.com
Build options: PIPE2 LIBNL3 RTA_ENCAP RTA_EXPIRES RTA_PREF FRA_OIFNAME FRA_SUPPRESS_PREFIXLEN FRA_TUN_ID RTAX_CC_ALGO RTAX_QUICKACK LIBIPTC LIBIPSET_DYNAMIC LVS LIBIPVS_NETLINK VRRP VRRP_AUTH VRRP_VMAC SOCK_NONBLOCK SOCK_CLOEXEC FIB_ROUTING INET6_ADDR_GEN_MODE SNMP_V3_FOR_V2 SNMP SNMP_KEEPALIVED SNMP_CHECKER SNMP_RFC SNMP_RFCV2 SNMP_RFCV3 SO_MARK
Distro
Details of any containerisation or hosted service (e.g. AWS)
virtual machine on VMware ESXi
Configuration file:
Additional context
viz https://groups.io/g/keepalived-users/message/313
The text was updated successfully, but these errors were encountered: