<div dir="ltr">ok Thanks for confirmation Darren<div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 6, 2023 at 4:16 PM Darren Ankney <<a href="mailto:darren.ankney@gmail.com">darren.ankney@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">neither of those configs are valid.  Looks like ChatGPT made up some<br>
things there.  See:<br>
<a href="https://kea.readthedocs.io/en/kea-2.2.0/arm/hooks.html#ha-high-availability-outage-resilience-for-kea-servers" rel="noreferrer" target="_blank">https://kea.readthedocs.io/en/kea-2.2.0/arm/hooks.html#ha-high-availability-outage-resilience-for-kea-servers</a><br>
<br>
Take a look at hot-standby as that is the easiest mode to configure and operate.<br>
<br>
On Mon, Mar 6, 2023 at 12:35 AM Kraishak Mahtha <<a href="mailto:kraishak.edu@gmail.com" target="_blank">kraishak.edu@gmail.com</a>> wrote:<br>
><br>
> Hi All,<br>
> I have recently started exploring kea-dhcp4, while I am checking for the kea-dhcp failover on chatGPT, It says that failover and HA are two different mechanisms for the kea and here is the sample example for kea-failover config as it provides<br>
> # Sample config for failover<br>
> ================<br>
> {<br>
>     "Dhcp4": {<br>
>         "control-socket": {<br>
>             "socket-type": "unix",<br>
>             "socket-name": "/tmp/kea-dhcp4-ctrl.sock"<br>
>         },<br>
>         "lease-database": {<br>
>             "type": "memfile",<br>
>             "lfc-interval": 3600<br>
>         },<br>
>         "expired-leases-processing": {<br>
>             "reclaim-timer-wait-time": 10,<br>
>             "flush-reclaimed-timer-wait-time": 25,<br>
>             "hold-reclaimed-time": 3600,<br>
>             "max-reclaim-leases": 100,<br>
>             "max-reclaim-time": 250,<br>
>             "unwarned-reclaim-cycles": 10,<br>
>             "warned-reclaim-cycles": 20<br>
>         },<br>
>         "subnet4": [<br>
>             {<br>
>                 "id": 1,<br>
>                 "subnet": "<a href="http://192.0.2.0/24" rel="noreferrer" target="_blank">192.0.2.0/24</a>",<br>
>                 "pools": [<br>
>                     {<br>
>                         "pool": "192.0.2.100 - 192.0.2.200"<br>
>                     }<br>
>                 ],<br>
>                 "option-data": [<br>
>                     {<br>
>                         "name": "routers",<br>
>                         "data": "192.0.2.1"<br>
>                     }<br>
>                 ]<br>
>             }<br>
>         ],<br>
>         "hosts-database": {<br>
>             "type": "memfile",<br>
>             "persist": true,<br>
>             "name": "hosts.json"<br>
>         },<br>
>         "dhcp-ddns": {<br>
>             "enable-updates": true,<br>
>             "qualifying-suffix": "<a href="http://example.com" rel="noreferrer" target="_blank">example.com</a>",<br>
>             "reverse-ddns": true,<br>
>             "hostname-char-set": "[a-zA-Z0-9.-]"<br>
>         },<br>
>         "valid-lifetime": 300,<br>
>         "renew-timer": 150,<br>
>         "rebind-timer": 225,<br>
>         "interfaces-config": {<br>
>             "interfaces": ["eth0"]<br>
>         },<br>
>         "dhcp-disable": false,<br>
>         "option-def": [<br>
>             {<br>
>                 "name": "domain-name-servers",<br>
>                 "code": 6,<br>
>                 "type": "ipv4-address",<br>
>                 "array": true<br>
>             }<br>
>         ],<br>
>         "option-data": [<br>
>             {<br>
>                 "name": "domain-name-servers",<br>
>                 "data": "192.0.2.2, 192.0.2.3"<br>
>             }<br>
>         ],<br>
>         "failover": {<br>
>             "name": "dhcp-failover",<br>
>             "mode": "hot-standby",<br>
>             "peer-address": "192.0.2.101",<br>
>             "peer-port": 519,<br>
>             "max-response-delay": 60,<br>
>             "max-unacked-clients": 10000,<br>
>             "load-balance-max-percent": 50,<br>
>             "load-balance-max-secs": 3600,<br>
>             "auto-partner-down": true,<br>
>             "decline-time": 60,<br>
>             "down-time": 300,<br>
>             "startup-delay": 10,<br>
>             "trust-local-time": true,<br>
>             "heartbeat-interval": 10,<br>
>             "connect-timeout": 2<br>
>         }<br>
>     }<br>
> }<br>
> #sample example of HA<br>
> ===================<br>
> {<br>
>     "Dhcp4": {<br>
>         "valid-lifetime": 3600,<br>
>         "renew-timer": 600,<br>
>         "rebind-timer": 1200,<br>
>         "subnet4": [<br>
>             {<br>
>                 "subnet": "<a href="http://192.168.0.0/24" rel="noreferrer" target="_blank">192.168.0.0/24</a>",<br>
>                 "pools": [<br>
>                     {<br>
>                         "pool": "192.168.0.100 - 192.168.0.200"<br>
>                     }<br>
>                 ],<br>
>                 "option-data": [<br>
>                     {<br>
>                         "name": "domain-name-servers",<br>
>                         "data": "8.8.8.8, 8.8.4.4"<br>
>                     },<br>
>                     {<br>
>                         "name": "domain-name",<br>
>                         "data": "<a href="http://example.com" rel="noreferrer" target="_blank">example.com</a>"<br>
>                     }<br>
>                 ],<br>
>                 "reservations": [<br>
>                     {<br>
>                         "hw-address": "00:11:22:33:44:55",<br>
>                         "ip-address": "192.168.0.10",<br>
>                         "hostname": "<a href="http://host1.example.com" rel="noreferrer" target="_blank">host1.example.com</a>"<br>
>                     }<br>
>                 ]<br>
>             }<br>
>         ],<br>
>         "interfaces-config": {<br>
>             "interfaces": ["eth0", "eth1"]<br>
>         },<br>
>         "ha": {<br>
>             "mode": "hot-standby",<br>
>             "ip-address": "192.168.0.2",<br>
>             "shared-secret": "my-secret",<br>
>             "peer-address": "192.168.0.3"<br>
>         }<br>
>     }<br>
> }<br>
><br>
> But when I search for the same in the official kea-doc. I don't see any such reference to failover directive or a key-word. Not sure if it is not supported from 2.2.0 version and later or I missed any other docs. Just curious to know if we really have such a difference, and if any one is familiar with this can you please share the reference for it.<br>
><br>
> Thanks in Advance<br>
> Kraishak<br>
><br>
> --<br>
> ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
><br>
> To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
><br>
> Kea-users mailing list<br>
> <a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
> <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
<br>
Kea-users mailing list<br>
<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
</blockquote></div>