If I’m not completely wrong, this diagram shows the communication paths between 
the two servers running in HA mode. Slightly different from what I initially 
thought. May be something like this could have been an idea to have as part of 
the docs?


       server1                                  server2
+-----------------------+                +-----------------------+
|                       |                |                       |
|                       |                |                       |
|   +---------------+   |                |   +---------------+   |
|   |               | 8000              8000 |               |   |
|   | kea-ctrl-agent|<--+----\       /---+-->| kea-ctrl-agent|   |
|   |               |   |     \     /    |   |               |   |
|   +---------------+   |      \   /     |   +---------------+   |
|                       |       \ /      |                       |
|                       |        \       |                       |
|                       |       / \      |                       |
|   +---------------+   |      /   \     |   +---------------+   |
|   |               |   |     /     \    |   |               |   |
|   | kea-dhcp4     +---+----/       \---+---+ kea-dhcp4     |   |
|   |               |   |                |   |               |   |
|   +---------------+   |                |   +---------------+   |
|                       |                |                       |
|                       |                |                       |
+-----------------------+                +-----------------------+

./PerW

From: Kea-users <[email protected]> On Behalf Of Weisteen Per
Sent: torsdag 24. mars 2022 13:28
To: Bohnenberger, Mark <[email protected]>; Victoria Risk 
<[email protected]>
Cc: [email protected]
Subject: Re: [Kea-users] problems enabling HA Hot-Standby setup (OPEN)

Thanks Mark, that did the trick! ☺

So I’m not supposed to use loopback address in kea-ctrl-agent.conf but the 
servers real address.
And I’m supposed to use same port both for kea-ctrl-agent as well as 
kea-dhcp4/6.

Thanks for all help ☺

./PerW

From: Bohnenberger, Mark 
<[email protected]<mailto:[email protected]>>
Sent: torsdag 24. mars 2022 11:36
To: Victoria Risk <[email protected]<mailto:[email protected]>>; Weisteen Per 
<[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>
Subject: AW: [Kea-users] problems enabling HA Hot-Standby setup (OPEN)

The HA Service doesn’t need SQL backend. Here are some config snippets how it 
is working in my environment. Just replace the code between <> with your system 
data.

########## Kea-ctrl-agent.conf

{
// RESTful interface to be available at http://127.0.0.1:8000/
"Control-agent": {
    "http-host": "<LOCAL IP>",
    "http-port": 8000,
    "control-sockets": {
….


########### Kea-dhcp4.conf

    "hooks-libraries": [
        {
            "library": "/opt/kea/lib/kea/hooks/libdhcp_stat_cmds.so",
            "parameters": { }
        },
        {
            "library": "/opt/kea/lib/kea/hooks/libdhcp_lease_cmds.so",
            "parameters": { }
        },
        {
            "library": "/opt/kea/lib/kea/hooks/libdhcp_ha.so",
            "parameters": {
                "high-availability": [ {
                   "this-server-name": "<NAME SERVER SAME AS PEER 
CONFIGURATION>",
                    "mode": "hot-standby",
                    "heartbeat-delay": 10000,
                    "max-response-delay": 10000,
                    "max-ack-delay": 5000,
                    "max-unacked-clients": 5,
                    "peers": [
                         {
                             "name": "<NAME PRIMARY>",
                             "url": http://<IP 
PRIMARY>5:8000/<http://%3cIP%20PRIMARY%3e5:8000/>,
                             "role": "primary",
                             "auto-failover": true
                         },
                         {
                             "name": "<NAME SECONDARY>",
                             "url": http://<IP 
SECONDARY>:8000/<http://%3cIP%20SECONDARY%3e:8000/>,
                             "role": "secondary",
                             "auto-failover": true
                         }
                     ]
                 } ]
            }
        }
    ],

-          Mark

Von: Kea-users 
<[email protected]<mailto:[email protected]>> Im 
Auftrag von Victoria Risk
Gesendet: Donnerstag, 24. März 2022 10:41
An: Weisteen Per <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>
Betreff: Re: [Kea-users] problems enabling HA Hot-Standby setup (OPEN)



On Mar 24, 2022, at 10:13 AM, Weisteen Per 
<[email protected]<mailto:[email protected]>> wrote:

I believe I’ve discovered why my setup doesn’t play. Seems HA feature depends 
on using configuration backend (CB) which again requires use of MySQL.

I was hoping HA could have worked using memfile but I guess not.

I am sorry I can’t tell you how to fix your configuration, but I am positive 
the HA feature does NOT depend on the configuration backend. HA definitely 
works with memfile. This is not the problem.

Vicky
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to