<div dir="ltr"><div class="gmail_default" style="font-size:small">That looks very similar to my setup which is working. Are you sure the kea service is not listening on port 8000? One way to check would be with "lsof -i -P| grep kea-dhcp" and look for a line showing the hostname:8000 (LISTEN).</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If the service is listening, then perhaps there is a firewall blocking incoming traffic to port 8000?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Dan</div><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 22, 2022 at 6:53 AM Weisteen Per <<a href="mailto:per.weisteen@telenor.no">per.weisteen@telenor.no</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">Hi, I've set up a HA Hot-Standby config according to docs but I can't figure out why the servers doesn't listen on port 8000.<br>
I thought that was the port configured for heartbeat. I'm a little confused and would be very happy if someone could explain how this is supposed to work ?<br>
<br>
I'm running KEA on RHEL 8 servers installed from KEA 2.0 repo using yum install. <br>
<br>
My HA config for primary server (pls ignore any missing parentheses ad this is just an extract: <br>
<br>
"library": "/usr/lib64/kea/hooks/libdhcp_ha.so",<br>
"parameters": {<br>
"high-availability": [{<br>
"this-server-name": "tst-dhcp01",<br>
"mode": "hot-standby",<br>
"heartbeat-delay": 10000,<br>
"max-response-delay": 10000,<br>
"max-ack-delay": 5000,<br>
"max-unacked-clients": 5,<br>
"multi-threading": {<br>
"enable-multi-threading": true,<br>
"http-dedicated-listener": true,<br>
"http-listener-threads": 4,<br>
"http-client-threads": 4<br>
},<br>
"peers": [{<br>
"name": "tst-dhcp01",<br>
"url": "<a href="http://10.123.10.10:8000/" rel="noreferrer" target="_blank">http://10.123.10.10:8000/</a>",<br>
"role": "primary",<br>
"auto-failover": true<br>
},{<br>
"name": "tst-dhcp02",<br>
"url": "<a href="http://10.123.20.20:8000/" rel="noreferrer" target="_blank">http://10.123.20.20:8000/</a>",<br>
"role": "standby",<br>
"auto-failover": true<br>
}] <br>
<br>
and for standby server:<br>
<br>
"library": "/usr/lib64/kea/hooks/libdhcp_ha.so",<br>
"parameters": {<br>
"high-availability": [{<br>
"this-server-name": "tst-dhcp02",<br>
"mode": "hot-standby",<br>
"heartbeat-delay": 10000,<br>
"max-response-delay": 10000,<br>
"max-ack-delay": 5000,<br>
"max-unacked-clients": 5,<br>
"multi-threading": {<br>
"enable-multi-threading": true,<br>
"http-dedicated-listener": true,<br>
"http-listener-threads": 4,<br>
"http-client-threads": 4<br>
},<br>
"peers": [{<br>
"name": "tst-dhcp01",<br>
"url": "<a href="http://10.123.10.10:8000/" rel="noreferrer" target="_blank">http://10.123.10.10:8000/</a>",<br>
"role": "primary",<br>
"auto-failover": true<br>
},{<br>
"name": "tst-dhcp02",<br>
"url": "<a href="http://10.123.20.20:8000/" rel="noreferrer" target="_blank">http://10.123.20.20:8000/</a>",<br>
"role": "standby",<br>
"auto-failover": true<br>
}] /* peers */<br>
}] /* high-availability */<br>
}<br>
<br>
Kea-debug.log shows :<br>
<br>
HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to tst-dhcp02 (<a href="http://10.123.20.20:8000/" rel="noreferrer" target="_blank">http://10.123.20.20:8000/</a>): Connection refused<br>
HA_COMMUNICATION_INTERRUPTED communication with tst-dhcp02 is interrupted<br>
<br>
And similar on the standby server but differet IP-address and name of course.<br>
<br>
./PerW<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>
</blockquote></div>