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

Bohnenberger, Mark mark.bohnenberger at bechtle.com
Thu Mar 24 10:36:14 UTC 2022


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> Im Auftrag von Victoria Risk
Gesendet: Donnerstag, 24. März 2022 10:41
An: Weisteen Per <per.weisteen at telenor.no>
Cc: 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/a3e57a50/attachment-0001.htm>


More information about the Kea-users mailing list