]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#78,!85] Added section to the User Guide about sync-page-limit parameter.
authorMarcin Siodelski <marcin@isc.org>
Tue, 23 Oct 2018 16:08:57 +0000 (18:08 +0200)
committerMarcin Siodelski <marcin@isc.org>
Mon, 5 Nov 2018 18:38:41 +0000 (13:38 -0500)
doc/guide/hooks-ha.xml

index 164483a63487a332c7475b37581b1ca718a5318c..7295a4bca43f289311062ed2f7f3b15ec09609fd 100644 (file)
           hooks library configuration is designed to maximize the administration
           flexibility.
         </para>
+      </section>
 
+      <section xml:id="ha-syncing-page-limit">
+        <title>Controlling Lease Page Size Limit</title>
+        <para>HA enabled server initiates synchronization of the lease
+        database after down time or upon receiving <command>ha-sync</command>
+        command. The server uses commands described in
+        <xref linkend="lease-get-page-cmds"/> to fetch leases from the
+        partner server (lease queries). The size of the results page
+        (maximum number of leases to be returned in a single response to one
+        of these commands) can be controlled via HA hooks library configuration.
+        Increasing the page size decreases the number of lease queries sent to
+        the partner server, but it causes the partner server to generate
+        larger responses, which lengthens transmission time as well as
+        memory and CPU utilization on both servers. Decreasing the
+        page size helps to decrease resources utilization but requires
+        more lease queries to be issued to fetch the entire lease
+        database.</para>
+        <para>The default value of the <command>sync-page-limit</command>
+        controlling the page size is 10000. This means that the entire
+        lease database can be fetched with a single command if the
+        size of this database is equal or lower than 10000.
+        </para>
       </section>
 
       <section xml:id="ha-syncing-timeouts">
             The <command>max-period</command> parameter specifies the maximum
             duration (in seconds) for which the DHCP service should be disabled.
             If the DHCP service is successfully disabled, the synchronizing
-            server will fetch leases from the remote server by issuing the
-            <command>lease4-get-all</command> command. When the lease database
-            synchronization is complete, the synchronizing server sends the
-            <command>dhcp-enable</command> to the peer to re-enable its
+            server will fetch leases from the remote server by issuing one or
+            more <command>lease4-get-page</command> commands. When the lease
+            database synchronization is complete, the synchronizing server sends
+            the <command>dhcp-enable</command> to the peer to re-enable its
             DHCP service.
           </para>