Send kea-dev mailing list submissions to

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to

You can reach the person managing the list at

When replying, please edit your Subject line so it is more specific
than "Re: Contents of kea-dev digest..."

Today's Topics:

   1.  memfile / loading of expired leases on startup
      (Chaigneau, Nicolas)


Message: 1
Date: Thu, 15 Sep 2016 15:09:36 +0000
From: "Chaigneau, Nicolas" <>
To: "" <>
Subject: [kea-dev] memfile / loading of expired leases on startup
Content-Type: text/plain; charset="us-ascii"


Following ticket #4294 that you've fixed in 1.1.0-beta (thanks again!), there 
is another related issue I'd like to discuss.

Upon startup, leases (using memfile) are loaded from disk, even if they are 
So if Kea is shut down for maintenance for example, and restarted after all the 
leases are expired, they are loaded anyway. This entails that the reclaim 
mechanism will have to catch up, and depending on configuration this can take 
quite a long time.

This causes two issues:
- Until the reclaim mechanism has finally caught up, the statistics will not be 
- And this is lots of unnecessary work for this mechanism (hence for Kea), that 
could be avoided.

Proposed evolution: upon startup, when loading leases from disk, check if a 
given lease is expired. If so... don't load it.

Well, it's probably slightly more complicated than that. With lease affinity, 
maybe something like:

If <lease expiry> + hold-reclaimed-time > now : then load this lease
If not, then just ignore this lease.

Thoughts ?


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient, you are not authorized 
to read, print, retain, copy, disseminate, distribute, or use this message or 
any part thereof. If you receive this message in error, please notify the 
sender immediately and delete all copies of this message.


Subject: Digest Footer

kea-dev mailing list


End of kea-dev Digest, Vol 30, Issue 6

Reply via email to