Kea DHCP 100% CPU usage / slow answer to queries
-
Hi
I switched from ISC DHCP Server to the new KEA server.
Server : 2.7.2-RELEASE (amd64)
built on Mon Mar 4 20:53:00 CET 2024
FreeBSD 14.0-CURRENTSince, the DHCP server is really (really!) slow to answer the queries for DHCP leases. DHCP is on 2 different subnet & LAN
The DHCP server use 100% of a CPU all the time, slow to answer queries and even slow to open the page Status -> DHCP LeasesToday I switched back to the ISC server, and everything is back to normal.
I tried to include Log entries, but the message was then flagged as spam ...
-
@JeanMi said in Kea DHCP 100% CPU usage / slow answer to queries:
but the message was then flagged as spam ...
Dump the logs in https://pastebin.com/ and paste the link to it here.
-
-
Looking at your logs, they look, just fine.
But ..... look again, and hit Ctrl-F and look for DHCP4_SHUTDOWN - and cycle over all the occurrences.
Your DHCP4 server restarts every minute sharp. -
@Gertjan I was wondering why it was loading the libraries all the time ... just because it just restart every minutes !
I'll try to find the root cause of the restart. I have a watchdog service on dhcp server ... so it restart, but why does it stop !!
I'll look at all the log, because right now I have to stay with the working DHCP server for some times.Thanks for the tips !
-
@JeanMi I was looking at the watchdog, and it look like it may be the root cause :
https://www.reddit.com/r/PFSENSE/comments/17qo3em/kea_dhcp_constant_stop_and_restart/
I'll try that !
Thanks @Gertjan for the help
-
Just to finish this thread :
It was the watchdog.When you change your DHCPd from ISC to KEA, you have to delete the dhcp watchdog and re-create it with the right kea dhcp option after the change. That's all !
Thanks !
-
@JeanMi said in Kea DHCP 100% CPU usage / slow answer to queries:
It was the watchdog.
It's always the watchdog package.
Ok to install it, but don't use it.Btw : ISC never died on me.
Kea has some issue in the beginning (23.09 or 2.7.2 ?) where it couldn't restart when it was told to do, for example during GUI DHCP changed but that is solved now.
The watchdog wouldn't change anything in that situation. -
@Gertjan Yep, I just deactivated all my watchdog monitored services (unbound, squid, ipsec, openvpn, kea-dhcp4) and I'll see if everything stay up
If so, I'll then uninstall watchdog service
Thanks again
-
@JeanMi said in Kea DHCP 100% CPU usage / slow answer to queries:
and I'll see if everything stay up
Don't worry ^^
If :
The power is good.
You don't mess with the system.
The system hasn't shown any hardware issues errors (like drive dying).you could; after several months, no ... more then one year ( !! ) be part of the "My pfSense is up and running for 1+ year now" elite club.
( but don't tell us, as it also means you didn't update update etc ... )For some reason, I restart my pfSense ones in while. Mostly because I updated something. (or because I f##ked up again ;) )