Hi Scott,

I am not a developer on the Kea project, but I would assume that at
the beginning of the reclamation cycle, a list of leases that can
currently be reclaimed is obtained (all that currently match the
correct state (expired) since "max-reclaim-leases" is 0).  The
"unlimited" time would be kea has as long as it likes to process that
list (since "max-reclaim-time" is 0).  Once that list is complete, now
Kea is going to wait "reclaim-timer-wait-time" seconds before it pulls
another list.  At least that is what I assumed from reading between
the lines in the documentation (and seems a sensible way to design the
feature).

Thank you,

Darren Ankney

On Fri, Oct 6, 2023 at 5:19 PM Scott Rakow <srs...@gmail.com> wrote:
>
> Darren,
>   Thanks for the reply. I guess I should restate my question a bit better.
>
> If both of the "max-reclaim-leases" and "max-reclaim-time" are zero, from 
> what I read in the documentation, the number of leases that will be claimed 
> is unlimited and the time to reclaim them is unlimited.
>
> If the reclaim time is unlimited how does the system know that that cycle has 
> ended, as if it is unlimited, the cycle should keep going (which would be 
> bad, as no IP's would be given out).
>
> Is there a counter/timer that if all is set to "unlimited" and if nothing is 
> reclaimed in X time, it ends the cycle and the wait-timer can take over?
>
> Scott
>
> On Fri, Oct 6, 2023 at 8:55 PM Darren Ankney <darren.ank...@gmail.com> wrote:
>>
>> Hi Scott,
>>
>> From the ARM 
>> (https://kea.readthedocs.io/en/kea-2.4.0/arm/lease-expiration.html#configuring-lease-reclamation):
>>
>> "According to the reclaim-timer-wait-time, the server keeps fixed
>> intervals of five seconds between the end of one cycle and the start
>> of the next cycle. This guarantees the presence of 5-second-long
>> periods during which the server remains responsive to DHCP queries and
>> does not perform lease reclamation."
>>
>> So, there would be 5 seconds or whatever you set in
>> "reclaim-timer-wait-time" between each reclamation.
>>
>> Thank you,
>>
>> Darren Ankney
>>
>> On Thu, Oct 5, 2023 at 6:28 PM Scott Rakow <srs...@gmail.com> wrote:
>> >
>> > I have a question when setting "max-reclaim-leases" and "max-reclaim-time" 
>> > to zero.
>> >
>> > If both are unlimited, when would the reclaim time end and the 
>> > "reclaim-timer-wait-time" be able to enact its buffer?
>> >
>> > Would not the reclamation cycle be continuous, as there is no end to the 
>> > max-reclaim-time?
>> >
>> > Scott
>> > --
>> > ISC funds the development of this software with paid support 
>> > subscriptions. Contact us at https://www.isc.org/contact/ for more 
>> > information.
>> >
>> > To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>> >
>> > Kea-users mailing list
>> > Kea-users@lists.isc.org
>> > https://lists.isc.org/mailman/listinfo/kea-users
>> --
>> ISC funds the development of this software with paid support subscriptions. 
>> Contact us at https://www.isc.org/contact/ for more information.
>>
>> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>>
>> Kea-users mailing list
>> Kea-users@lists.isc.org
>> https://lists.isc.org/mailman/listinfo/kea-users
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to