-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: luci-app-keepalived: add interface_up_down_delays
option
#7475
Comments
Since I don't have a setup, can you please check if the patch init script creates a valid configuration if you make the following changes to Changes to
Add additional
|
Hi Florian, thanks for the very fast reply! Yes, it creates a valid
|
Correction to the above: The correct syntax for the function is |
@grifos I'll update the code when I get back to the office. |
Thank you Florian. One thing to note: the configured delay times have to be less than 2 x the VRRP advert interval, see the below logs. I think it's worth mentioning that on the Luci field.
|
What would you like to see in luci?
The maintainer and
keepalived
expert is Florian @feckertWould it be possible to add the
keepalived
interface_up_down_delays
option toluci-app-keepalived
?Please note: I realize that to implement this there may also have to be changes to the
keepalived
package itself, for the UCI code (the actual functionality should already be present inkeepalived
). Please just let me know if I should also open a feature request in packages.This
keepalived
feature allows for the configuration of VRRP master/backup switchover delays to interfaces up or down events.It was mainly intended to prevent instability due to flapping links, but another major use case is to prevent downtime and unpredictable behavior when using STP, which is my use case.
In my tests, with STP enabled, a WAN side
keepalived
instance will switchover to primary as soon as a tracked LAN interface comes back up, however traffic will not pass due to STP delays. Also, the other VRRP node does not see the main node's VRRP messages and it remains stuck in master mode, even after STP has enabled the link, and only akeepalived
restart fixes the problem.The keepalived.conf syntax is as follows:
More info can be found here: https://www.keepalived.org/manpage.html
Sadly I'm not a programmer, else I'd have been more than happy to submit a PR.
Thank you for all the work you do on OpenWrt. As someone wrote on Phoronix, you guys are doing God's work ;)
The text was updated successfully, but these errors were encountered: