In Micetro, you can configure High Availability (HA) for Kea DHCP servers and add failover relationships for them. Both the primary and secondary servers in a failover relationship need to be added to Micetro. Once you've added the servers, you can manage them separately.
For more information about managing failover relationships, refer to Kea DHCP failover relationships.
There are several aspects of Kea's High Availability feature that you must take into account when setting up failover relationships:
- High Availability hooks library
- Ports and networking for each Kea DHCP server
- Configuring the DHCP Agent to adjust the HA setup
- Adding a High Availability-enabled Kea DHCP server to Micetro
- Fallback behaviors and indicators
- Making external changes to Kea servers in High Availability
High Availability hooks library
Previously only available to paid subscribers, the High Availability (HA) hooks library is now part of the open-source Kea. The hooks library needs to be present on the file system before the Kea DHCP servers can be managed in High Availability mode.
You must have the following hook libraries on your file system before you can add a failover relationship:
- libdhcp_lease_cmds.so, which enables control commands necessary for High Availability to manage leases on remote servers.
- libdhcp_ha.so, which implements the High Availability feature.
Micetro searches for hooks in the default location.
- For RedHat-like systems (e.g., RHEL, CentOS, SUSE, Fedora), the hook library
is typically located at
/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so. - For Debian-based systems (e.g., Ubuntu, Linux Mint, Raspbian), the hook
library is usually located at
/usr/lib64/kea/hooks/libdhcp_ha.so. - You can customize the library’s location by specifying the path using the
keaHooksLocationvalue in the DHCP Agent preferences.cfg file.
If the hooks are located elsewhere, you must specify the correct location using the keaHooksLocation
preference value for the DHCP Agent.
Ports and networking
To ensure a seamless Kea High Availability setup, Micetro requires effective communication with each Kea DHCP server through specific ports. This communication is vital both for Micetro’s interaction with the servers and for cross-communication between Kea DHCP servers via the Kea Control Agent.
The Kea Control Agent defaults to port 8000. You can manually define
this port in the configuration file, typically located at
/etc/kea/kea-ctrl-agent.conf. It's crucial that you keep
this port open and accessible on every server hosting a Kea DHCP service and a Kea
Control Agent.
Adding a High Availability-enabled Kea DHCP server to Micetro
If the Kea High Availability environment is set up correctly, system administrators can add the Kea DHCP servers much like any other DHCP server. For more information, refer to Adding a service.