[Kea-users] HA syncing lease database

Doug Freed dwfreed at isc.org
Thu Apr 3 15:19:46 UTC 2025


I think it's important to note here for clarity that lease updates are 
transferred between HA participants as they happen after the initial 
sync during HA setup is done.

-Doug

On 4/3/25 9:42 AM, Peter Davies wrote:
> 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 at 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
> 
> 



More information about the Kea-users mailing list