]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2441] fixed comments in examples
authorRazvan Becheriu <razvan@isc.org>
Sat, 27 Aug 2022 21:16:24 +0000 (00:16 +0300)
committerRazvan Becheriu <razvan@isc.org>
Mon, 29 Aug 2022 06:50:26 +0000 (09:50 +0300)
doc/examples/kea4/ha-load-balancing-server1-mt-with-tls.json
doc/examples/kea4/ha-load-balancing-server2-mt.json
doc/examples/kea6/ha-hot-standby-server1-with-tls.json
doc/examples/kea6/ha-hot-standby-server2.json
doc/examples/template-ha-mt-tls/info.md
doc/examples/template-ha-mt-tls/kea-dhcp4-1.conf
doc/examples/template-ha-mt-tls/kea-dhcp4-2.conf
src/lib/yang/tests/adaptor_config_unittests.cc
src/lib/yang/tests/config_unittests.cc

index 951ee2d1b028cb1e63fdff23c7634c0f2ab78d0a..a837ada39274dc8d3cd8bd45acb217155f5c9dda 100644 (file)
                     // hundreds of thausands of clients), you may need to increase it
                     // further. The default value is 60000ms (60 seconds).
                     "sync-timeout": 60000,
+                    // To not experience performance degradation when the Kea server is
+                    // processing packets on multiple threads, the High Availablility module
+                    // must be configured in a similar way.
                     "multi-threading": {
                         "enable-multi-threading": true,
                         // When running in MT mode, the dedicated listener is used to handle
                         // This is the configuration of this server instance.
                         {
                             "name": "server1",
-                            // This specifies the URL of our server instance. The
-                            // Control Agent is not required run along with our DHCPv4 server
-                            // instance. The "http-host" and "http-port" values must be
-                            // set to different values then the Control Agent.
+                            // This specifies the URL of this server instance. The
+                            // Control Agent is not required to run along with this DHCPv4 server
+                            // instance if multi-threading is enabled.
+                            // The "http-host" and "http-port" values must be set to different
+                            // values then the ones used by the Control Agent.
                             "url": "http://192.168.56.33:8000/",
                             // Trust anchor aka certificate authority file or directory.
                             "trust-anchor": "/usr/lib/kea/CA.pem",
                             "cert-file": "/usr/lib/kea/server1_cert.pem",
                             // Private key file name.
                             "key-file": "/usr/lib/kea/server1_key.pem",
+                            // Client certificates are required and verified.
+                            "require-client-certs": true,
                             // This server is primary. The other one must be
                             // secondary.
                             "role": "primary"
                         },
-                        // This is the configuration of our HA peer.
+                        // This is the configuration of the HA peer.
                         {
                             "name": "server2",
                             // Specifies the URL on which the partner's control
                             // channel can be reached. The Control Agent is not required
-                            // to run on the partner's machine. The "http-host" and
-                            // "http-port" values must be set to different values then the
-                            // Control Agent.
+                            // to run on the partner's machine if multi-threading is enabled.
+                            // The "http-host" and "http-port" values must be set to different
+                            // values then the ones used by the Control Agent.
                             "url": "http://192.168.56.66:8000/",
                             // Trust anchor aka certificate authority file or directory.
                             "trust-anchor": "/usr/lib/kea/CA.pem",
                             "cert-file": "/usr/lib/kea/server2_cert.pem",
                             // Private key file name.
                             "key-file": "/usr/lib/kea/server2_key.pem",
-                            // The partner is a secondary. Our is primary.
+                            // Client certificates are required and verified.
+                            "require-client-certs": true,
+                            // The partner is secondary. This server is primary.
                             "role": "secondary"
                         }
                     ]
index a445c7672c990bf5221817119e7fb5a6f21c000b..9563b0703209ffe6828864bc42199b33eebdd666 100644 (file)
                     // hundreds of thausands of clients), you may need to increase it
                     // further. The default value is 60000ms (60 seconds).
                     "sync-timeout": 60000,
+                    // To not experience performance degradation when the Kea server is
+                    // processing packets on multiple threads, the High Availablility module
+                    // must be configured in a similar way.
                     "multi-threading": {
                         "enable-multi-threading": true,
                         // When running in MT mode, the dedicated listener is used to handle
                         "http-client-threads": 4
                     },
                     "peers": [
-                        // This is the configuration of this server instance.
+                        // This is the configuration of the HA peer.
                         {
                             "name": "server1",
-                            // This specifies the URL of our server instance. The
-                            // Control Agent is not required run along with our DHCPv4 server
-                            // instance. The "http-host" and "http-port" values must be
-                            // set to different values then the Control Agent.
+                            // Specifies the URL on which the partner's control
+                            // channel can be reached. The Control Agent is not required
+                            // to run on the partner's machine if multi-threading is enabled.
+                            // The "http-host" and "http-port" values must be set to different
+                            // values then the ones used by the Control Agent.
                             "url": "http://192.168.56.33:8000/",
-                            // This server is primary. The other one must be
-                            // secondary.
+                            // The partner is primary. This server is secondary.
                             "role": "primary"
                         },
-                        // This is the configuration of our HA peer.
+                        // This is the configuration of this server instance.
                         {
                             "name": "server2",
-                            // Specifies the URL on which the partner's control
-                            // channel can be reached. The Control Agent is not required
-                            // to run on the partner's machine. The "http-host" and
-                            // "http-port" values must be set to different values then the
-                            // Control Agent.
+                            // This specifies the URL of this server instance. The
+                            // Control Agent is not required to run along with this DHCPv4 server
+                            // instance if multi-threading is enabled.
+                            // The "http-host" and "http-port" values must be set to different
+                            // values then the ones used by the Control Agent.
                             "url": "http://192.168.56.66:8000/",
-                            // The partner is a secondary. Our is primary.
+                            // This server is secondary. The other one must be
+                            // primary.
                             "role": "secondary"
                         }
                     ]
index ac5c63eb74ab7184afab1544f80c6289790adcd4..bd57d06365355f4389146407b0f9d02c429bcb10 100644 (file)
                     "cert-file": "/usr/lib/kea/server_cert.pem",
                     // Private key file name.
                     "key-file": "/usr/lib/kea/server_key.pem",
+                    // Client certificates are required and verified.
+                    "require-client-certs": true,
                     "peers": [
-                        // This is the configuration of our HA peer.
+                        // This is the configuration of this server instance.
                         {
                             "name": "server1",
-                            // Specifies the URL on which the partner's control
-                            // channel can be reached. The Control Agent is required
-                            // to run on the partner's machine with "http-host" and
-                            // "http-port" values set to the corresponding values.
+                            // This specifies the URL of this server instance. The
+                            // Control Agent must run along with this DHCPv6 server
+                            // instance and the "http-host" and "http-port" must be
+                            // set to the corresponding values.
                             "url": "http://192.168.56.33:8000/",
-                            // The partner is primary. Our is standby.
+                            // This server is primary. The other one must be
+                            // standby.
                             "role": "primary"
                         },
-                        // This is the configuration of this server instance.
+                        // This is the configuration of the HA peer.
                         {
                             "name": "server2",
-                            // This specifies the URL of our server instance. The
-                            // Control Agent must run along with our DHCPv6 server
-                            // instance and the "http-host" and "http-port" must be
-                            // set to the corresponding values.
+                            // Specifies the URL on which the partner's control
+                            // channel can be reached. The Control Agent is required
+                            // to run on the partner's machine with "http-host" and
+                            // "http-port" values set to the corresponding values.
                             "url": "http://192.168.56.66:8000/",
-                            // Out server is standby. The partner is primary.
+                            // The partner is standby. This server is primary.
                             "role": "standby"
                         }
                     ]
index 1b9d3dde0086c0dc3119179a5806cb3d7d1c01f7..cd9de933ffd96874ec058484fa06ae53621a7a67 100644 (file)
@@ -78,7 +78,7 @@
                     // the partner but appear to not receive any response.
                     "max-unacked-clients": 5,
                     "peers": [
-                        // This is the configuration of our HA peer.
+                        // This is the configuration of the HA peer.
                         {
                             "name": "server1",
                             // Specifies the URL on which the partner's control
                             // to run on the partner's machine with "http-host" and
                             // "http-port" values set to the corresponding values.
                             "url": "http://192.168.56.33:8000/",
-                            // The partner is primary. Our is standby.
+                            // The partner is primary. This server is standby.
                             "role": "primary"
                         },
                         // This is the configuration of this server instance.
                         {
                             "name": "server2",
-                            // This specifies the URL of our server instance. The
-                            // Control Agent must run along with our DHCPv6 server
+                            // This specifies the URL of this server instance. The
+                            // Control Agent must run along with this DHCPv6 server
                             // instance and the "http-host" and "http-port" must be
                             // set to the corresponding values.
                             "url": "http://192.168.56.66:8000/",
-                            // Out server is standby. The partner is primary.
+                            // This server is standby. The other one must be
+                            // primary.
                             "role": "standby"
                         }
                     ]
index 0215702013691637ad2727ae90056f1512f4ba89..dbd22818f8276b0b47d09627699d11ebb95166f2 100644 (file)
@@ -32,10 +32,10 @@ listener, which forward only the lease updates commands to the peer server.
 Deployment Considerations
 ~~~~~~~~~~~~~~~~~~~~~~~~~
 
-The setup is not expected to scale automatically. This example uses 4 thread for
+The setup is not expected to scale automatically. This example uses 4 threads for
 processing DHCP traffic, 4 threads for listening and handling HA peer HTTP requests
 and 4 threads for sending lease updates to the HA peer. The thread queue used to
-store incomming HDCP requests is set to 64, but specific values for better
+store incomming DHCP requests is set to 64, but specific values for better
 performance must be determined on the deployment setup by doing proper testing
 and benchmarks.
 
index f498fb1da7b30180295febb49b19f293f5d94198..e7974ee59821249411728e93085414a6942da050 100644 (file)
                             "cert-file": "/usr/lib/kea/server1_cert.pem",
                             // Private key file name.
                             "key-file": "/usr/lib/kea/server1_key.pem",
+                            // Client certificates are required and verified.
+                            "require-client-certs": true,
                             // This server is primary. The other one must be
                             // secondary.
                             "role": "primary"
                             "cert-file": "/usr/lib/kea/server2_cert.pem",
                             // Private key file name.
                             "key-file": "/usr/lib/kea/server2_key.pem",
+                            // Client certificates are required and verified.
+                            "require-client-certs": true,
                             // The other server is secondary. This one must be
                             // primary.
                             "role": "standby"
index 7ddb75dcd43f4ba1969df02b12ce1242114eaa83..36c418dd193eef6f6b6a6802ef552f1837846a6e 100644 (file)
@@ -2,7 +2,7 @@
 //
 // - uses High Availability hooks library and Lease Commands hooks library
 //   to enable High Availability function for the DHCP server. This config
-//   file is for the primary (the active) server.
+//   file is for the secondary (the standby) server.
 // - uses memfile, which stores lease data in a local CSV file
 // - it assumes a single /24 addressing over a link that is directly reachable
 //   (no DHCP relays)
                             "cert-file": "/usr/lib/kea/server1_cert.pem",
                             // Private key file name.
                             "key-file": "/usr/lib/kea/server1_key.pem",
+                            // Client certificates are required and verified.
+                            "require-client-certs": true,
                             // The other server is primary. This one must be
                             // secondary.
                             "role": "primary"
                             "cert-file": "/usr/lib/kea/server2_cert.pem",
                             // Private key file name.
                             "key-file": "/usr/lib/kea/server2_key.pem",
+                            // Client certificates are required and verified.
+                            "require-client-certs": true,
                             // This server is secondary. The other one must be
                             // primary.
                             "role": "standby"
index c4670887dccd389109e037e6632fa815ca4b870c..514cf67cf6d6140b11b5140d53b11c25f8601f25 100644 (file)
@@ -70,8 +70,8 @@ TEST_F(AdaptorConfigTest, loadExamples4) {
         "config-backend.json",
         "dhcpv4-over-dhcpv6.json",
         "global-reservations.json",
-        "ha-load-balancing-primary-mt-with-tls.json",
-        "ha-load-balancing-secondary-mt.json",
+        "ha-load-balancing-server1-mt-with-tls.json",
+        "ha-load-balancing-server2-mt.json",
         "hooks.json",
         "hooks-radius.json",
         "leases-expiration.json",
@@ -106,8 +106,8 @@ TEST_F(AdaptorConfigTest, loadExamples6) {
         "dhcpv4-over-dhcpv6.json",
         "duid.json",
         "global-reservations.json",
-        "ha-hot-standby-primary-with-tls.json",
-        "ha-hot-standby-secondary.json",
+        "ha-hot-standby-server1-with-tls.json",
+        "ha-hot-standby-server2.json",
         "hooks.json",
         "iPXE.json",
         "leases-expiration.json",
index fcbadb8d703d9d4c8bcaba8d1143e47b1a8a3af1..e1c24c9ea481fe3343520d04060f1f968ae7b9dc 100644 (file)
@@ -334,8 +334,8 @@ TEST_F(ConfigTestKeaV4, examples4) {
         "config-backend.json",
         "dhcpv4-over-dhcpv6.json",
         "global-reservations.json",
-        "ha-load-balancing-primary-mt-with-tls.json",
-        "ha-load-balancing-secondary-mt.json",
+        "ha-load-balancing-server1-mt-with-tls.json",
+        "ha-load-balancing-server2-mt.json",
         "hooks.json",
         "hooks-radius.json",
         "leases-expiration.json",
@@ -376,8 +376,8 @@ TEST_F(ConfigTestKeaV6, examples6) {
         "dhcpv4-over-dhcpv6.json",
         "duid.json",
         "global-reservations.json",
-        "ha-hot-standby-primary-with-tls.json",
-        "ha-hot-standby-secondary.json",
+        "ha-hot-standby-server1-with-tls.json",
+        "ha-hot-standby-server2.json",
         "hooks.json",
         "iPXE.json",
         "leases-expiration.json",