Send kea-dev mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of kea-dev digest..."
Today's Topics:
1. Re: memfile / loading of expired leases on startup
(Chaigneau, Nicolas)
----------------------------------------------------------------------
Message: 1
Date: Tue, 27 Sep 2016 08:33:40 +0000
From: "Chaigneau, Nicolas" <[email protected]>
To: "Chaigneau, Nicolas" <[email protected]>,
"[email protected]" <[email protected]>
Subject: Re: [kea-dev] memfile / loading of expired leases on startup
Message-ID:
<ab94b0b675bdf14189cd5a861db36c845a44d...@de-cm-mbx26.corp.capgemini.com>
Content-Type: text/plain; charset="iso-8859-1"
I suspect this has been forgotten, so I'm posting again. :)
-----Message d'origine-----
De?: kea-dev [mailto:[email protected]] De la part de Chaigneau,
Nicolas
Envoy??: jeudi 15 septembre 2016 17:10
??: [email protected]
Objet?: [kea-dev] memfile / loading of expired leases on startup
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
[email protected]
https://lists.isc.org/mailman/listinfo/kea-dev
------------------------------
End of kea-dev Digest, Vol 30, Issue 7
**************************************