-
Notifications
You must be signed in to change notification settings - Fork 694
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
Kea DHCP HA failover for "sync-timeout": 6000 doesn't occur #7458
Comments
not sure if this is new, but looking at https://kea.readthedocs.io/en/latest/arm/hooks.html#hot-standby-configuration |
Just tried and updated config for "peers" section on both servers to:
Then service was restarted on both (configs were checked after that to ensure OPNsense UI hasn't replaced the changes), "primary" machine was switched off but unfortunately this doesn't solve the problem - failover still doesn't occur automatically on the "standby" even after waiting 10 minutes. It does occur if I restart Kea service on the "standby" machine or 5-6 clients are unacted. Done some research online and some people suggest to use "max-unacked-clients": 0 but this doesn't seem like a good solution to me as you risk "standby" taking over when "primary" isn't truly unavailable which might result in duplicate leases. |
Kea seems to be challenging at least unfortunately, if there is an idea of options to add or change, just ping me. There's not much we can do at this stage I'm afraid (last feature we tried to add didn't appear to be working either for "reasons"), kea's feature set looks large at a first glance, but the functional part appears to be much smaller. |
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
Opensense Version: OPNsense 24.1.6-amd64
We have a straightforward setup with CARP configured for WAN and LAN which is working fine. We also set up Kia DHCP and failover from Master/primary (when it's switched off) to the backup only occurs after 5-6 unacted clients and never occurs after "sync-timeout": 60000. This was tested a few times.
To Reproduce
Steps to reproduce the behavior:
kea-ctrl-agent.conf on both servers:
kea-dhcp4.conf on "primary" / master:
kea-dhcp4.conf on "standby" / backup:
Expected behavior
If "primary" Kea DHCP server is unavailable, after 60000 milliseconds (as by default "sync-timeout": 60000) "standby" DHCP server failover should occur and "standby" should take over and start serving leases.
Relevant log files
log.txt
Environment
Opensense Version: OPNsense 24.1.6-amd64
The text was updated successfully, but these errors were encountered: