[Kea-users] KEA instances with shared database

Tomek Mrugalski tomek at isc.org
Fri Dec 11 19:11:48 UTC 2020


On 11.12.2020 18:12, Emile Swarts wrote:
> I've looked at implementing multiple KEA instances with a shared database.
> I realise that this current setup will hand out overlapping IPs because
> the leases are stored in memory not in the database.
Where did you get this impression from? This is mostly incorrect. If you
configure Kea to use a database to store leases, Kea will never cache
anything in memory and will always do a DB lookup before assigning
anything. The only way I can think of making Kea to keep the leases
"stored in memory" would be using memfile as lease backend, but then Kea
would never look up leases in a DB.

> I'm in the process of adding KEA HA, but just wanted to confirm that
> there is no way to force a lookup in the database to find the next
> available IP before committing to this approach.
Kea doesn't work the way you think it is. Kea always looks up the lease
database and never keeps any memory cache of it.

Tomek


More information about the Kea-users mailing list