]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1986] added comments and updated ARM
authorRazvan Becheriu <razvan@isc.org>
Fri, 6 Aug 2021 09:15:46 +0000 (12:15 +0300)
committerTomek Mrugalski <tomek@isc.org>
Tue, 24 Aug 2021 15:04:41 +0000 (15:04 +0000)
doc/examples/agent/comments.json
doc/examples/agent/https.json
doc/examples/agent/simple.json
doc/sphinx/arm/agent.rst
doc/sphinx/arm/hooks-ha.rst
src/bin/keactrl/kea-ctrl-agent.conf.pre

index 39f3ff0ce24c6503a4f3348f9c001213d4676a17..3ef0be9de8caf028fc84420f2551524442bc75fd 100644 (file)
@@ -9,6 +9,13 @@
         "comment": "A Control Agent",
 
         "http-host": "127.0.0.1",
+
+        // If enabling HA and multi-threading, the 8000 port is used by the HA
+        // hook library http listener. The control-agent is not required any
+        // longer for HA hook library with multi-threading to function because
+        // it uses it's own http listener on the same port, but it can still be
+        // used to handle other commands. In this case, a different port
+        // (eg. 8800) must be used for the control-agent.
         "http-port": 8000,
 
         // In authentication
index c36269d5e74551855019bd421a40d5678ccf05e5..0e60f52a57b098faa4eb26e3465566856cdec0d9 100644 (file)
@@ -9,6 +9,12 @@
         "http-host": "127.0.0.1",
 
         // Another mandatory parameter is the HTTP port.
+        // If enabling HA and multi-threading, the 8000 port is used by the HA
+        // hook library http listener. The control-agent is not required any
+        // longer for HA hook library with multi-threading to function because
+        // it uses it's own http listener on the same port, but it can still be
+        // used to handle other commands. In this case, a different port
+        // (eg. 8800) must be used for the control-agent.
         "http-port": 8000,
 
         // TLS trust anchor (Certificate Authority). This is a file name or
index 7aa741d33d8d50d253329b449544bf23d3938915..98d91a238402af4f1be8c259ee50f344e55d6cb3 100644 (file)
@@ -9,6 +9,12 @@
         "http-host": "127.0.0.1",
 
         // Another mandatory parameter is the HTTP port.
+        // If enabling HA and multi-threading, the 8000 port is used by the HA
+        // hook library http listener. The control-agent is not required any
+        // longer for HA hook library with multi-threading to function because
+        // it uses it's own http listener on the same port, but it can still be
+        // used to handle other commands. In this case, a different port
+        // (eg. 8800) must be used for the control-agent.
         "http-port": 8000,
 
         // Optional authentication.
index 3c493e9dead33e99cca1758fca4de31ddd630cbe..9f812458212062763769eac2aaa29a19b0c984b5 100644 (file)
@@ -102,6 +102,12 @@ provided above, the RESTful service will be available under the URL of
 ``https://10.20.30.40:8000/``. If these parameters are not specified, the
 default URL is ``http://127.0.0.1:8000/``.
 
+If enabling HA and multi-threading, the 8000 port is used by the HA hook library
+http listener. The CA is not required any longer for HA hook library with
+multi-threading to function because it uses it's own http listener on the same
+port, but it can still be used to handle other commands. In this case, a
+different port (eg. 8800) must be used for the CA.
+
 The ``trust-anchor``, ``cert-file``, ```key-file`` and ``cert-required``
 parameters specify the TLS setup for HTTP i.e. HTTPS. If these parameters
 are not specified HTTP is used. The TLS/HTTPS support in Kea is
index a36485b7a622da3a12102b93540e47ac499bfa39..aa6d6939d19cba76724011061994bc97fc48a135 100644 (file)
@@ -1457,6 +1457,12 @@ load-balancing and the hot-standby cases presented in previous sections.
    {
    "Control-agent": {
        "http-host": "192.168.56.33",
+       // If enabling HA and multi-threading, the 8000 port is used by the HA
+       // hook library http listener. The control-agent is not required any
+       // longer for HA hook library with multi-threading to function because
+       // it uses it's own http listener on the same port, but it can still be
+       // used to handle other commands. In this case, a different port
+       // (eg. 8800) must be used for the control-agent.
        "http-port": 8000,
 
        "control-sockets": {
index 8eb53983d92ffa4c2c8e84e0fa15b6717f093039..2f91101d948e086603b4b7367d2a24caf3df9066 100644 (file)
 // RESTful interface to be available at http://127.0.0.1:8000/
 "Control-agent": {
     "http-host": "127.0.0.1",
+    // If enabling HA and multi-threading, the 8000 port is used by the HA hook
+    // library http listener. The control-agent is not required any longer for
+    // HA hook library with multi-threading to function because it uses it's own
+    // http listener on the same port, but it can still be used to handle other
+    // commands. In this case, a different port (eg. 8800) must be used for the
+    // control-agent.
     "http-port": 8000,
 
     // Specify location of the files to which the Control Agent