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)

You can perform load testing with perfdhcp: 
https://kea.readthedocs.io/en/kea-2.2.0/man/perfdhcp.8.html

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.  That is a tunable parameter, however.

----- Original Message -----
> From: "Tan Mientras" <[email protected]>
> To: "Peter Davies" <[email protected]>
> Cc: "kea-users" <[email protected]>
> Sent: Wednesday, November 9, 2022 6:23:27 AM
> Subject: Re: [Kea-users] Problems setting up HA

> now, once the HA is running in load-balancing mode, seems only first node is
> receiving/handling the DHCPDISCOVER messages, while 2 only does lease4-update
> is there a way to burst-test or to know whether load balancing is working or
> not?

> On Wed, Nov 9, 2022 at 12:07 PM Tan Mientras < [ 
> mailto:[email protected] |
> [email protected] ] > wrote:

>> yes. the issue was I wasn't using agents at all (only installed dhcp-server 
>> and
>> hook libraries)

>> On Wed, Nov 9, 2022 at 11:51 AM Peter Davies < [ mailto:[email protected] |
>> [email protected] ] > wrote:

>>> Hi Tan,
>>> Does the "control-socket" definition in your kea-dhcp4 configuration
>>> match
>>> the "control-socket" definition in the /etc/kea-ctrl-agent.conf file?

>>> /Peter
>>> On 09/11/2022 11.22, perl-list wrote:
>>>> Are you running the control agent? Mine shown below is for dhcp6, but i'm 
>>>> sure
>>> > the config is similar.

>>> > $ /usr/sbin/kea-ctrl-agent -c /etc/kea-ctrl-agent.conf

>>> > $ cat /etc/kea-ctrl-agent.conf
>>> > {
>>> > "Control-agent": {
>>> > "http-host": "10.0.0.1",
>>> > "http-port": 8000,
>>> > "control-sockets": {
>>> > "dhcp6": {
>>> > "socket-type": "unix",
>>> > "socket-name": "/tmp/kea6-ctrl-socket"
>>> > }
>>> > }
>>> > }
>>> > }

>>> > ----- Original Message -----
>>>>> From: "Tan Mientras" < [ mailto:[email protected] | 
>>>>> [email protected]
>>> >> ] >
>>> >> To: "kea-users" < [ mailto:[email protected] | 
>>> >> [email protected] ] >
>>> >> Sent: Wednesday, November 9, 2022 2:39:44 AM
>>> >> Subject: [Kea-users] Problems setting up HA
>>> >> Hi
>>> >> I'm having issues setting up the HA.
>>> >> Once the servers are running the complain with:
>>> >> Nov 9 08:29:59 vmdhcp01 kea-dhcp4[170994]: INFO DHCP4_STARTED Kea DHCPv4 
>>> >> server
>>> >> version 2.3.2 started
>>> >> Nov 9 08:30:10 vmdhcp01 kea-dhcp4[170994]: WARN
>>> >> HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to vmdhcp02 
>>> >> ( [
>>>>> [ http://192.168.120.253:8000/ | http://192.168.120.253:8000/ ] | [
>>> >> http://192.168.120.253:8000/ | http://192.168.120.253:8000/ ] ] ): 
>>> >> Connection
>>> >> refused
>>> >> Nov 9 08:30:10 vmdhcp01 kea-dhcp4[170994]: WARN 
>>> >> HA_COMMUNICATION_INTERRUPTED
>>> >> communication with vmdhcp02 is interrupted
>>> >> Nov 9 08:30:10 vmdhcp01 kea-dhcp4[170994]: INFO HA_STATE_TRANSITION 
>>> >> server
>>> >> transitions from WAITING to PARTNER-DOWN state, partner state is 
>>> >> UNDEFINED
>>> >> Nov 9 08:30:10 vmdhcp01 kea-dhcp4[170994]: INFO 
>>> >> HA_LEASE_UPDATES_DISABLED lease
>>> >> updates will not be sent to the partner while in PARTNER-DOWN state
>>> >> Nov 9 08:30:10 vmdhcp01 kea-dhcp4[170994]: INFO HA_LOCAL_DHCP_ENABLE 
>>> >> local DHCP
>>> >> service is enabled while the vmdhcp01 is in the PARTNER-DOWN state
>>> >> vmdhcp01 and vmdhcp02 have similar configuration (except 
>>> >> this-server-name):
>>> >> "hooks-libraries":[
>>> >> {
>>> >> "library":"/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so",
>>> >> "parameters":{
>>> >> "high-availability": [{
>>> >> "this-server-name": "vmdhcp01",
>>> >> "mode": "load-balancing",
>>> >> "heartbeat-delay": 10000,
>>> >> "max-response-delay": 10000,
>>> >> "max-ack-delay": 5000,
>>> >> "max-unacked-clients": 0,
>>> >> "delayed-updates-limit": 100,
>>> >> "peers": [{
>>> >> "name": "vmdhcp01",
>>>>> "url": " [ [ http://192.168.120.254:8000/ | http://192.168.120.254:8000/ 
>>>>> ] | [
>>> >> http://192.168.120.254:8000/ | http://192.168.120.254:8000/ ] ] ",
>>> >> "role": "primary",
>>> >> "auto-failover": true
>>> >> }, {
>>> >> "name": "vmdhcp02",
>>>>> "url": " [ [ http://192.168.120.253:8000/ | http://192.168.120.253:8000/ 
>>>>> ] | [
>>> >> http://192.168.120.253:8000/ | http://192.168.120.253:8000/ ] ] ",
>>> >> "role": "secondary",
>>> >> "auto-failover": true
>>> >> }]
>>> >> }]
>>> >> }
>>> >> }
>>> >> ],
>>> >> Anyone can help me?
>>> >> --
>>> >> ISC funds the development of this software with paid support 
>>> >> subscriptions.
>>>>> Contact us at [ https://www.isc.org/contact/ | 
>>>>> https://www.isc.org/contact/ ]
>>> >> for more information.
>>>>> To unsubscribe visit [ https://lists.isc.org/mailman/listinfo/kea-users |
>>> >> https://lists.isc.org/mailman/listinfo/kea-users ] .
>>> >> Kea-users mailing list
>>> >> [ mailto:[email protected] | [email protected] ]
>>>>> [ https://lists.isc.org/mailman/listinfo/kea-users |
>>> >> https://lists.isc.org/mailman/listinfo/kea-users ]

>>> --

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

>>> To unsubscribe visit [ https://lists.isc.org/mailman/listinfo/kea-users |
>>> https://lists.isc.org/mailman/listinfo/kea-users ] .

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

> --
> 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
-- 
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