[Kea-users] HA syncing lease database
Peter Davies
peterd at isc.org
Thu Apr 3 14:42:24 UTC 2025
Hi Jason,
In HA, leases are synchronized each time a HA session is established.
Typically, when one of the HA partners has been restarted.
This is governed by the "sync-lease" HA setting,which default to "true."
The "ha-sync" API command is used to synchronize the leases between Kea
servers.
See:https://kea.readthedocs.io/en/kea-2.7.7/arm/hooks.html#control-commands-for-high-availability
/Peter
On 03/04/2025 15.20, Jason Creviston wrote:
> Does anyone know how often leases sync? We're using memfile to store
> leases. The only thing I could find in the docs was "synchronizing the
> lease database as needed".
>
> The leases between our HA pair are out of sync, and I'm curious how
> often the primary sends the |ha-sync| command to the secondary.
> Stork's Leases Search feature is showing a valid IP lease for an
> address, but it's only reporting that from the secondary unit. The
> lease was allocated on 4/2 12:58 and expires today. I cleared the
> lease from a javascript application at some point yesterday afternoon.
> I figured the servers would've sync'd leases by now.
>
>
> Thanks,
>
>
> *Jason Creviston*
> Sr. Network Administrator
> P: 765-795-9305 2 S. West Street – P.O. Box 237, Cloverdale, IN 46120
> Book an appointment with me!
> <https://outlook.office365.com/owa/calendar/JasonCreviston@weendeavor.com/bookings/>
>
> weEndeavor.com <http://weendeavor.com/> GigTel.com
> <http://gigtel.com/> EndeavorIT.com <http://EndeavorIT.com>
> CONFIDENTIALITY NOTICE: The information in this Email and my
> attachments are confidential and may be privileged. This Email is
> intended solely for the named recipient or recipients. If you are not
> the intended recipient, any use, disclosure, copying or distribution
> of this Email is prohibited. If you are not the intended recipient,
> please inform us by replying with the subject line "Wrong Address" and
> then delete this Email and any attachments. Endeavor Communications
> uses regularly updated anti-virus software in an attempt to reduce the
> possibility of transmitting computer viruses. We do not guarantee,
> however, that any attachments to this Email are virus-free.
>
>
--
Peter Davies
Support Engineer
Internet Systems Corporation
peterd at isc.org
001 650-423-1460
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20250403/92085a93/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: codetwo-signature-logo-endeavor_1c9b8f6f-f797-4b22-a7d8-b9c8f1b0c327.png
Type: image/png
Size: 1897 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20250403/92085a93/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: codetwo-gigtel-logo2_e109b7e4-b185-40fc-94f2-947f96c612cf.png
Type: image/png
Size: 1039 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20250403/92085a93/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: endeavor-it-signature-2_cad37e9b-ad7b-4219-a677-f37914c8d32a.png
Type: image/png
Size: 1214 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20250403/92085a93/attachment-0002.png>
More information about the Kea-users
mailing list