<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 9, 2022 at 12:38 PM perl-list <<a href="mailto:perl-list@network1.net">perl-list@network1.net</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">The other one is still receiving the packets, it just isn't doing anything with them unless it becomes the active device (assuming you chose hot-standby mode)<br></blockquote><div>I configured load-balancing mode :S<br></div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
You can perform load testing with perfdhcp: <a href="https://kea.readthedocs.io/en/kea-2.2.0/man/perfdhcp.8.html" rel="noreferrer" target="_blank">https://kea.readthedocs.io/en/kea-2.2.0/man/perfdhcp.8.html</a></blockquote><div>trying to install this conflicts with isc-kea-common...</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
As far as checking functionality of HA, I am not sure... I guess you could shut down the primary and see what happens? I have done that, but it won't immediately switch. It will wait until a certain number of clients are trying to obtain a lease and then switch. </blockquote><div>stopped dhcp service in server1 and server2 did nothing but complaining about the heartbeat...</div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">That is a tunable parameter, however.<br></blockquote><div></div><div>Is "max-unacked-clients" ?<br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
----- Original Message -----<br>
> From: "Tan Mientras" <<a href="mailto:tanimientras@gmail.com" target="_blank">tanimientras@gmail.com</a>><br>
> To: "Peter Davies" <<a href="mailto:peterd@isc.org" target="_blank">peterd@isc.org</a>><br>
> Cc: "kea-users" <<a href="mailto:kea-users@lists.isc.org" target="_blank">kea-users@lists.isc.org</a>><br>
> Sent: Wednesday, November 9, 2022 6:23:27 AM<br>
> Subject: Re: [Kea-users] Problems setting up HA<br>
<br>
> now, once the HA is running in load-balancing mode, seems only first node is<br>
> receiving/handling the DHCPDISCOVER messages, while 2 only does lease4-update<br>
> is there a way to burst-test or to know whether load balancing is working or<br>
> not?<br>
<br>
> On Wed, Nov 9, 2022 at 12:07 PM Tan Mientras < [ mailto:<a href="mailto:tanimientras@gmail.com" target="_blank">tanimientras@gmail.com</a> |<br>
> <a href="mailto:tanimientras@gmail.com" target="_blank">tanimientras@gmail.com</a> ] > wrote:<br>
<br>
>> yes. the issue was I wasn't using agents at all (only installed dhcp-server and<br>
>> hook libraries)<br>
<br>
>> On Wed, Nov 9, 2022 at 11:51 AM Peter Davies < [ mailto:<a href="mailto:peterd@isc.org" target="_blank">peterd@isc.org</a> |<br>
>> <a href="mailto:peterd@isc.org" target="_blank">peterd@isc.org</a> ] > wrote:<br>
<br>
>>> Hi Tan,<br>
>>> Does the "control-socket" definition in your kea-dhcp4 configuration<br>
>>> match<br>
>>> the "control-socket" definition in the /etc/kea-ctrl-agent.conf file?<br>
<br>
>>> /Peter<br>
>>> On 09/11/2022 11.22, perl-list wrote:<br>
>>>> Are you running the control agent? Mine shown below is for dhcp6, but i'm sure<br>
>>> > the config is similar.<br>
<br>
>>> > $ /usr/sbin/kea-ctrl-agent -c /etc/kea-ctrl-agent.conf<br>
<br>
>>> > $ cat /etc/kea-ctrl-agent.conf<br>
>>> > {<br>
>>> > "Control-agent": {<br>
>>> > "http-host": "10.0.0.1",<br>
>>> > "http-port": 8000,<br>
>>> > "control-sockets": {<br>
>>> > "dhcp6": {<br>
>>> > "socket-type": "unix",<br>
>>> > "socket-name": "/tmp/kea6-ctrl-socket"<br>
>>> > }<br>
>>> > }<br>
>>> > }<br>
>>> > }<br>
<br>
>>> > ----- Original Message -----<br>
>>>>> From: "Tan Mientras" < [ mailto:<a href="mailto:tanimientras@gmail.com" target="_blank">tanimientras@gmail.com</a> | <a href="mailto:tanimientras@gmail.com" target="_blank">tanimientras@gmail.com</a><br>
>>> >> ] ><br>
>>> >> To: "kea-users" < [ mailto:<a href="mailto:kea-users@lists.isc.org" target="_blank">kea-users@lists.isc.org</a> | <a href="mailto:kea-users@lists.isc.org" target="_blank">kea-users@lists.isc.org</a> ] ><br>
>>> >> Sent: Wednesday, November 9, 2022 2:39:44 AM<br>
>>> >> Subject: [Kea-users] Problems setting up HA<br>
>>> >> Hi<br>
>>> >> I'm having issues setting up the HA.<br>
>>> >> Once the servers are running the complain with:<br>
>>> >> Nov 9 08:29:59 vmdhcp01 kea-dhcp4[170994]: INFO DHCP4_STARTED Kea DHCPv4 server<br>
>>> >> version 2.3.2 started<br>
>>> >> Nov 9 08:30:10 vmdhcp01 kea-dhcp4[170994]: WARN<br>
>>> >> HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to vmdhcp02 ( [<br>
>>>>> [ <a href="http://192.168.120.253:8000/" rel="noreferrer" target="_blank">http://192.168.120.253:8000/</a> | <a href="http://192.168.120.253:8000/" rel="noreferrer" target="_blank">http://192.168.120.253:8000/</a> ] | [<br>
>>> >> <a href="http://192.168.120.253:8000/" rel="noreferrer" target="_blank">http://192.168.120.253:8000/</a> | <a href="http://192.168.120.253:8000/" rel="noreferrer" target="_blank">http://192.168.120.253:8000/</a> ] ] ): Connection<br>
>>> >> refused<br>
>>> >> Nov 9 08:30:10 vmdhcp01 kea-dhcp4[170994]: WARN HA_COMMUNICATION_INTERRUPTED<br>
>>> >> communication with vmdhcp02 is interrupted<br>
>>> >> Nov 9 08:30:10 vmdhcp01 kea-dhcp4[170994]: INFO HA_STATE_TRANSITION server<br>
>>> >> transitions from WAITING to PARTNER-DOWN state, partner state is UNDEFINED<br>
>>> >> Nov 9 08:30:10 vmdhcp01 kea-dhcp4[170994]: INFO HA_LEASE_UPDATES_DISABLED lease<br>
>>> >> updates will not be sent to the partner while in PARTNER-DOWN state<br>
>>> >> Nov 9 08:30:10 vmdhcp01 kea-dhcp4[170994]: INFO HA_LOCAL_DHCP_ENABLE local DHCP<br>
>>> >> service is enabled while the vmdhcp01 is in the PARTNER-DOWN state<br>
>>> >> vmdhcp01 and vmdhcp02 have similar configuration (except this-server-name):<br>
>>> >> "hooks-libraries":[<br>
>>> >> {<br>
>>> >> "library":"/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so",<br>
>>> >> "parameters":{<br>
>>> >> "high-availability": [{<br>
>>> >> "this-server-name": "vmdhcp01",<br>
>>> >> "mode": "load-balancing",<br>
>>> >> "heartbeat-delay": 10000,<br>
>>> >> "max-response-delay": 10000,<br>
>>> >> "max-ack-delay": 5000,<br>
>>> >> "max-unacked-clients": 0,<br>
>>> >> "delayed-updates-limit": 100,<br>
>>> >> "peers": [{<br>
>>> >> "name": "vmdhcp01",<br>
>>>>> "url": " [ [ <a href="http://192.168.120.254:8000/" rel="noreferrer" target="_blank">http://192.168.120.254:8000/</a> | <a href="http://192.168.120.254:8000/" rel="noreferrer" target="_blank">http://192.168.120.254:8000/</a> ] | [<br>
>>> >> <a href="http://192.168.120.254:8000/" rel="noreferrer" target="_blank">http://192.168.120.254:8000/</a> | <a href="http://192.168.120.254:8000/" rel="noreferrer" target="_blank">http://192.168.120.254:8000/</a> ] ] ",<br>
>>> >> "role": "primary",<br>
>>> >> "auto-failover": true<br>
>>> >> }, {<br>
>>> >> "name": "vmdhcp02",<br>
>>>>> "url": " [ [ <a href="http://192.168.120.253:8000/" rel="noreferrer" target="_blank">http://192.168.120.253:8000/</a> | <a href="http://192.168.120.253:8000/" rel="noreferrer" target="_blank">http://192.168.120.253:8000/</a> ] | [<br>
>>> >> <a href="http://192.168.120.253:8000/" rel="noreferrer" target="_blank">http://192.168.120.253:8000/</a> | <a href="http://192.168.120.253:8000/" rel="noreferrer" target="_blank">http://192.168.120.253:8000/</a> ] ] ",<br>
>>> >> "role": "secondary",<br>
>>> >> "auto-failover": true<br>
>>> >> }]<br>
>>> >> }]<br>
>>> >> }<br>
>>> >> }<br>
>>> >> ],<br>
>>> >> Anyone can help me?<br>
>>> >> --<br>
>>> >> ISC funds the development of this software with paid support subscriptions.<br>
>>>>> Contact us at [ <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> | <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> ]<br>
>>> >> for more information.<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>
>>> >> <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a> ] .<br>
>>> >> Kea-users mailing list<br>
>>> >> [ mailto:<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a> | <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>
>>> >> <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>
>>> --<br>
<br>
>>> --<br>
>>> ISC funds the development of this software with paid support subscriptions.<br>
>>> Contact us at [ <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> | <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> ]<br>
>>> 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>
>>> <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>
>>> [ mailto:<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a> | <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>
>>> <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>
> --<br>
> ISC funds the development of this software with paid support subscriptions.<br>
> 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></div>