diff options
| author | Marcin Siodelski <marcin@isc.org> | 2022-09-19 10:57:31 +0200 |
|---|---|---|
| committer | Marcin Siodelski <marcin@isc.org> | 2022-09-22 15:26:49 +0200 |
| commit | 0fc3c32484afd34c9faaa4462bc46f7f38459a34 (patch) | |
| tree | 1bd0fdb524f23abbc942024b2040331dc782a59a | |
| parent | 5624879020742e3f9a191264a192401c9fb564c7 (diff) | |
[#2408] Documented max-rejected-lease-updates
| -rw-r--r-- | doc/sphinx/arm/hooks-ha.rst | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/doc/sphinx/arm/hooks-ha.rst b/doc/sphinx/arm/hooks-ha.rst index 80f66f2318..ad437bde5c 100644 --- a/doc/sphinx/arm/hooks-ha.rst +++ b/doc/sphinx/arm/hooks-ha.rst @@ -665,6 +665,7 @@ only difference that ``this-server-name`` should be set to "server2" and "max-response-delay": 60000, "max-ack-delay": 5000, "max-unacked-clients": 5, + "max-rejected-lease-updates": 10, "delayed-updates-limit": 100, "peers": [{ "name": "server1", @@ -762,6 +763,21 @@ respect to HA: the ``partner-down`` state immediately. The default value of this parameter is 10. +- ``max-rejected-lease-updates`` - specifies how many lease updates for distinct + clients can fail due to a conflict between the lease and the partner configuration + or state before the server transitions to the ``terminated`` state. Conflict + can be a sign of a misconfiguration. Usually, one or several conflicted + leases are acceptable because they affect only a few devices. However, if + the conflicts occur for many devices (e.g., entire subnet), the HA service + becomes unreliable, should be terminated, and the problem should be manually + corrected by an administrator. It is up to the administrator to select + the highest acceptable value of ``max-rejected-lease-updates``. The default + value is 10. The special value of 0 configures the server to never terminate + the HA service due to the lease conflicts. If the value is 1, the server + transitions to the ``terminated`` state when the first conflict occurs. + This parameter does not pertain to the conflicting lease updates sent to + the backup servers. + - ``delayed-updates-limit`` - specifies the maximum number of lease updates which can be queued while the server is in the ``communication-recovery`` state. This parameter was introduced in Kea 1.9.4. The special value of 0 @@ -770,6 +786,18 @@ respect to HA: cannot reach its partner, it goes straight into the ``partner-down`` state. The default value of this parameter is 100. +.. note:: + + The ``max-rejected-lease-updates`` parameter has been introduced in Kea 2.3.1 + release. Earlier, the server did not differentiate between a lease update + failure due to a dead partner and conflicts (e.g., configuration issues). + As a result, the server could sometimes transition to the ``partner-down`` + state even though the partner was operating normally, but only some leases + had issues. Conflicts should no longer cause such a transition. However, + depending on the ``max-rejected-lease-updates`` setting, too many conflicts + can lead to the High Availability service termination. In that case, both + servers continue to respond to DHCP queries but no longer send lease updates. + The values of ``max-ack-delay`` and ``max-unacked-clients`` must be selected carefully, taking into account the specifics of the network in which the DHCP servers are operating. The server in question may not respond to some DHCP @@ -1031,6 +1059,7 @@ The following is an example configuration of the primary server in a "max-response-delay": 60000, "max-ack-delay": 5000, "max-unacked-clients": 5, + "max-rejected-lease-updates": 10, "peers": [{ "name": "server1", "url": "http://192.168.56.33:8000/", @@ -1150,8 +1179,8 @@ the backup servers. Many of the parameters present in the ``load-balancing`` and ``hot-standby`` configuration examples are not relevant in the ``passive-backup`` mode, thus they are not specified here. For example: ``heartbeat-delay``, -``max-unacked-clients``, and others related to the automatic failover mechanism -should not be specified in the ``passive-backup`` mode. +``max-unacked-clients``, ``max-rejected-lease-updates`` and others related to +the failover mechanism should not be specified in the ``passive-backup`` mode. The ``wait-backup-ack`` is a boolean parameter not present in previous examples. It defaults to ``false`` and must not be modified in the ``load-balancing`` and |
