[Kea-users] problems enabling HA Hot-Standby setup (OPEN)

Weisteen Per per.weisteen at telenor.no
Thu Mar 24 12:28:16 UTC 2022


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 <mark.bohnenberger at bechtle.com>
Sent: torsdag 24. mars 2022 11:36
To: Victoria Risk <vicky at isc.org>; Weisteen Per <per.weisteen at telenor.no>
Cc: kea-users at lists.isc.org
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 <kea-users-bounces at lists.isc.org<mailto:kea-users-bounces at lists.isc.org>> Im Auftrag von Victoria Risk
Gesendet: Donnerstag, 24. März 2022 10:41
An: Weisteen Per <per.weisteen at telenor.no<mailto:per.weisteen at telenor.no>>
Cc: kea-users at lists.isc.org<mailto:kea-users at lists.isc.org>
Betreff: Re: [Kea-users] problems enabling HA Hot-Standby setup (OPEN)



On Mar 24, 2022, at 10:13 AM, Weisteen Per <per.weisteen at telenor.no<mailto:per.weisteen at telenor.no>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20220324/75047e11/attachment-0001.htm>


More information about the Kea-users mailing list