acassen/keepalived — pull request #108 by dupondje (2014-11-27 09:55:20+00:00)
Title: add arp_sleep to throttle gratuitous arp

Hi,

I created this small patch to resolve an issue we are having with keepalived.
On servers with alot of virtual IP's, we have issues that our switches throttle the gratuitous arp packages.

This can't be changed on switch level (hardcoded), so we had to find some 'workaround'/'fix' for this.
So I implemented the following patch.

The patch makes you able to configure an 'arp_sleep' variable.
This will cause a small usleep between the arp's, which causes to resolve the throttling.

If you don't want the feature, you can just not set it (default = 0), and it won't affect anything (except a call to usleep with 0.

I tested this already, and its working fine.

Thanks!
Jean-Louis