[Kea-users] Planning some experimentation with HA using ECMP

Dan Geist dan at polter.net
Tue Apr 30 13:18:44 UTC 2024


Thanks Vicky. 

Facebook's dhcplb is an option, but it also solves problems that we don't have (imbalance of DHCP messaging and need for staged deployments). It also requires more infra (either physical or virtual) and a slightly greater network complexity which differs from what we already support in other services. I'm trying to stick with the "just because you have a hammer, you should still try to use a screwdriver on screws" philosophy :) 

I suppose the WAY in which the traffic is balanced is ultimately a wash, though. Either way, we'd need Kea instances in a horizontal N-number farm with mostly-identical behaviors (regardless of if they listen for the virtual IP or if it's housed one hop upstream). Ideally, having as little state as possible (or as little state that DIFFERS between hosts) is an important aspect. 

Performance tuning, strategy for maintaining the database backend (monolithic vs multiple replicating instances) and so forth will be important, but is there anything inherent about Kea itself that will break this conceptually (unique metadata payload in messaging that will break on DHCP refresh to a different node or something along those lines)? 

Thanks 
Dan 

----- On Apr 30, 2024, at 8:39 AM, Victoria Risk <vicky at isc.org> wrote: 

>> On Apr 29, 2024, at 6:16 PM, Dan Geist <dan at polter.net> wrote:

>> Hi. I have an environment where many of the network services (DNS, NTP, ToD,
>> etc.) provide scaling, fault tolerance, and load sharing via ECMP (in front of
>> the service) and BGP. Each (of the 2 or more) service node(s) monitors the
>> status of that service and announces/pulls BGP announcements from the upstream
>> router pair. This works really well for protocols with simple request/response
>> transactions.

>> I'd like to try doing this same thing with Kea dhcpv(4|6). In that setup, the
>> same "virtual service IP" would be configured on each of several Kea nodes (in
>> addition to the real link IPs) and they would announce these to the next hop
>> (as above). My thinking is that if there is a common configuration and lease
>> backend to these multiple nodes, then this can be a way to provide HA services
>> (and scaling) to a very large number of devices. My only concern is how the
>> multi-step transaction will be handled.

>> Before I spend the time to mock this up, has anyone else tried ECMP load
>> distribution with DHCP, specifically on Kea, and are there any "gotchas" to be
>> aware of?

> You might want to check out the DHCP Load Balancer from Facebook: [
> https://github.com/facebookincubator/dhcplb |
> https://github.com/facebookincubator/dhcplb ]

>> Thanks.
>> Dan

>> --
>> Dan Geist dan(@)polter.net

>> --
>> 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
>> Kea-users at lists.isc.org
>> 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
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users

-- 
Dan Geist dan(@)polter.net 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20240430/97a232d5/attachment.htm>


More information about the Kea-users mailing list