Send kea-dev mailing list submissions to
        kea-dev@lists.isc.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/kea-dev
or, via email, send a message with subject or body 'help' to
        kea-dev-requ...@lists.isc.org

You can reach the person managing the list at
        kea-dev-ow...@lists.isc.org

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" <nicolas.chaign...@capgemini.com>
To: "kea-dev@lists.isc.org" <kea-dev@lists.isc.org>
Subject: [kea-dev] memfile / loading of expired leases on startup
Message-ID:
        
<ab94b0b675bdf14189cd5a861db36c845a443...@de-cm-mbx26.corp.capgemini.com>
        
Content-Type: text/plain; charset="us-ascii"

Hello,



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 
expired.
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 
accurate.
- 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 ?


Regards,
Nicolas.


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
kea-dev@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-dev

------------------------------

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

Reply via email to