<div dir="ltr">Hi All,<div>I am using the kea in HA mode with Hot-standby mode in my local lab testing before I use it in production and here is my failover config section:</div><div>  "hooks-libraries": [</div>        {<br>            "library": "/var/lib/kea/hooks/libdhcp_ha.so",<br>            "parameters": {"high-availability": [{<br>                "mode": "hot-standby",<br>                "heartbeat-delay": 10000,<br>                "trust-anchor": "",<br>                "multi-threading": {<br>                    "http-dedicated-listener": true,<br>                    "enable-multi-threading": true,<br>                    "http-client-threads": 4,<br>                    "http-listener-threads": 4<br>                },<br>                "max-response-delay": 60000,<br>                "cert-file": "",<br>                "this-server-name": "dhcp1",<br>                "max-ack-delay": 10000,<br>                "peers": [<br>                    {<br>                        "role": "primary",<br>                        "name": "dhcp1",<br>                        "auto-failover": true,<br>                        "url": "<a href="http://192.168.0.125:8001">http://192.168.0.125:8001</a>"<br>                    },<br>                    {<br>                        "role": "standby",<br>                        "name": "dhcp2",<br>                        "auto-failover": true,<br>                        "url": "<a href="http://192.168.0.126:8001">http://192.168.0.126:8001</a>"<br>                    }<br>                ],<br>                "key-file": "",<br>                "max-unacked-clients": 2<br>            }]}<br>        },<div>The other part of the configuration is the same for both servers.</div><div><br></div><div>I am testing the case by stopping the primary appliance and see how the other peer reacts, and whether it can continue the service for the existing and new clients</div><div><br></div><div>The problem I see is with max-unacked-clients parameter, I set the value to 2 and after stopping the primary I hit the command (ipconfig /renew)for a new client and I am unable to get leases so checked the following:</div><div>Status-output <br>============</div><div>{<br>  "arguments": {<br>    "high-availability": [<br>      {<br>        "ha-mode": "hot-standby",<br>        "ha-servers": {<br>          "local": {<br>            "role": "standby",<br>            "scopes": [],<br>            "state": "hot-standby"<br>          },<br>          "remote": {<br>            "age": 327,<br>            "analyzed-packets": 145,<br>            "communication-interrupted": true,<br>            "connecting-clients": 3,<br>            "in-touch": true,<br>            "last-scopes": [<br>              "dhcp1"<br>            ],<br>            "last-state": "unavailable",<br>            "role": "primary",<br>            "unacked-clients": 1,<br>            "unacked-clients-left": 2<br>          }<br>        }<br>      }<br>    ],<br>    "multi-threading-enabled": true,<br>    "packet-queue-size": 29,<br>    "packet-queue-statistics": [<br>      1,<br>      0.999997,<br>      0.719168<br>    ],<br>    "pid": 17707,<br>    "reload": 6093,<br>    "sockets": {<br>      "status": "ready"<br>    },<br>    "thread-pool-size": 7,<br>    "uptime": 7488<br>  },<br>  "result": 0<br>}<br></div><div>  --> From the above status I have a few doubts, I set the max-unacked clients as 2 in my config but in the above status output it says<br> "unacked-clients": 1,</div> "unacked-clients-left": 2<br>Does that mean it is checking for 3 max-unacked clients to switch to partner-down state?<div>If yes when can we call the client can be counted as unacked clients, I am not getting the leases for more than 5 laptops, and also I collected the tcpdump during that time to see the time elapsed seconds for discover packet, for few of the client it reached more than 20 seconds but still I don't see they get leases. The main reason I can think of here the status is not changed to partner-down and hence it is unable to give a lease but the reason behind that is max-unacked client, </div><div><br></div><div>When I do the same with max-unacked client values as zero, I don't see any issue, and clients are able to get the lease because it switched to partner-down fastly<br><br>When can we consider the client under max-unacked client ?</div><div><br></div><div>I thought if the client sends a request and the server is unable to grant a lease then it can consider an unacked client but here when the client is sending the request to the stand-by server then we are seeing in the log as <br><br>2023-06-22 13:36:50.943 DEBUG [kea-dhcp4.ha-hooks/17707.140342512834304] HA_BUFFER4_RECEIVE_NOT_FOR_US [hwtype=1 08:6a:c5:82:de:a8], cid=[01:08:6a:c5:82:de:a8], tid=0xaaba6094: dropping query to be processed by another server<br><br>and is not considered as un-ackedclient, so back to square when can we consider a client request as unacked ?</div><div><br></div><div><br></div><div>Thanks in Advance </div><div>Kraishak </div></div>