[Kea-users] HA based on galera

Owen Dunn osd1000 at cam.ac.uk
Wed Mar 14 09:54:56 UTC 2018


On Tue, 13 Mar 2018, lex at ezelink.com wrote:

> I'm running 2 kea dhcp servers and connect them to galera-mysql cluster for 
> HA.
> Everything is ok, but sometimes i have this message in logs:
>
> 2018-03-13 14:14:45.036 ERROR [kea-dhcp4.alloc-engine/11864] 
> ALLOC_ENGINE_V4_ALLOC_ERROR [hwtype=1 b8:53:ac:xx:xx:xx], 
> cid=[01:b8:53:ac:xx:xx:xx], tid=0xa56d03a4: error during attempt to allocate 
> an IPv4 address: unable to execute for <SELECT address, hwaddr, client_id, 
> valid_lifetime, expire, subnet_id, fqdn_fwd, fqdn_rev, hostname, state FROM 
> lease4 WHERE client_id = ? AND subnet_id = ?>, reason: Deadlock found when 
> trying to get lock; try restarting transaction (error code 1213)
>
> the network is relatively small - not more than 50-100 requests per second
>
> How can I get rid of these messages? Cause after getting this error, server 
> sends NACK to client

You could always work around it with a hook that throws NAKs on the floor.

Owen



More information about the Kea-users mailing list