From: Tomek Mrugalski Date: Fri, 22 Feb 2019 09:40:40 +0000 (+0100) Subject: [#362,!182] comment review: move lease-expiration params to beginning of the charter X-Git-Tag: 481-remote-subnet4-set-inconsistent-work-when-id-subnet-is-duplicated_base~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15617bbe33154c5d9c82d5a458f4102e25e30b8c;p=thirdparty%2Fkea.git [#362,!182] comment review: move lease-expiration params to beginning of the charter --- diff --git a/doc/guide/lease-expiration.xml b/doc/guide/lease-expiration.xml index 5572166f92..3fd33f4e9b 100644 --- a/doc/guide/lease-expiration.xml +++ b/doc/guide/lease-expiration.xml @@ -85,6 +85,64 @@ hooks libraries. +
+ Lease Reclamation Configuration Parameters + The following list presents all configuration parameters + pertaining to processing expired leases with their default values: + + + + reclaim-timer-wait-time - This parameter + governs intervals between completion of previous reclaimation cycle + and a start of the next one. Specified in seconds. The default value + is 10 [seconds]. + + + flush-reclaimed-timer-wait-time - This + parameter controls how often the server initiates lease reclaimation + procedure. Expressed in seconds. The default value is 25 [seconds]. + + + hold-reclaimed-time - This parameter governs + how long the lease should be kept after it was reclaimed. This enables + lease affinity when set to a non-zero value. Expressed in seconds. The + default value is 3600 [seconds]. + + + max-reclaim-leases - This parameter + specifies the maximum number of reclaimed leases that can be processed + in one go. Zero means unlimited (i.e. process all reclaimed leases). The + default value is 100. + + + max-reclaim-time - This parameter specifies + an upper bound of how long a lease reclaimation procedure can + take. Zero means no time limit. Expressed in milliseconds. The default + value is 250 [milliseconds]. + + + unwarned-reclaim-cycles - If lease + reclaimation limits are specifed (max-reclaim-leases and/oor + max-reclaim-time), then under certain circumstances the server may not be + able to deal with leases to be reclaimed fast enough. This parameter + specifies how many consecutive clean up cycles must end with remaining + leases to be processed before a warning is printed. The default is 5 [cycles]. + + + + + + The parameters are explained in more detail in the rest of this chapter. + + + The default value for any parameter is used when this parameter is not + explicitly specified in the configuration. Also, the + expired-leases-processing map may be omitted entirely + in the configuration, in which case the default values are used for all + parameters listed above. + +
+
Configuring Lease Reclamation Kea can be configured to periodically detect and reclaim expired @@ -170,9 +228,7 @@ }, ... -} - - +} @@ -298,40 +354,15 @@ higher than the reclaim-timer-wait-time, as timely removal of expired-reclaimed leases is less critical than the removal process, which may impact server responsiveness. -
- -
- Default Configuration Values for Lease Reclamation - The following list presents all configuration parameters - pertaining to processing expired leases with their default values: - - - - reclaim-timer-wait-time = 10 [seconds] - - - flush-reclaimed-timer-wait-time = 25 [seconds] - - - hold-reclaimed-time = 3600 [seconds] - - - max-reclaim-leases = 100 - - - max-reclaim-time = 250 [milliseconds] - - - unwarned-reclaim-cycles = 5 - - - - The default value for any parameter is used when this parameter is not - explicitly specified in the configuration. Also, the - expired-leases-processing map may be omitted entirely - in the configuration, in which case the default values are used for all - parameters listed above. + There is no guarantee that lease affinity will work every + time. If a server is running out of addresses, it will reassign + expired addresses to new clients. Also, clients can request + specific addresses and the server will try to honor such a request + if possible. If you want to ensure a client keeps its address, + even after periods of inactivity, consider using host reservations + or leases with very long lifetimes. +