[Kea-users] Weird stats from a shared database

Rasmus Edgar regj at arch-ed.dk
Wed Dec 13 11:03:44 UTC 2017


Hi Munroe, 

As far as I understand (Kea Users please correct me if I am wrong) using
two active Kea servers (load balanced) with a shared database is not
supported before Kea version 1.4.

See: http://kea.isc.org/wiki/HADesign

Perhaps you are not using the same configuration on the two Kea servers.
but your mail seems to suggest the Kea servers are handing out IPs from
the same range. 

Br, 

Rasmus 

Munroe Sollog skrev den 2017-12-12 15:48:

> Let me know if this should be a bug, but I have noticed some weird stats when running two kea-1.3 DHCP servers from the same mysql database (using Galera). 
> 
> I have included a screen grab of the stats. 
> 
> Between noon and 2pm yesterday we when I migrated rogi from the memfile to the mysql database.  I migrated all of the existing leases from the CSV to mysql and started rogi. 
> 
> Igor from around 2:30pm until about 7:45am the next day it steadily declines all the way to -436 leases.  How can it possibly have *negative* leases? 
> 
> This subnet is configured with 1hr leases.  With that in mind, the fact that rogi steadily climbed overnight is very suspicious.  This seems like rogi maybe wasn't reclaiming leases correctly? 
> 
> At just after 8am (towards the end of the graph), I made a configuration change to rogi and restarted it.  This seemed to have triggered the reclamation process and also brought igor back from the negative. 
> 
> All and all a very weird graph.  With two servers handing out IPs for the same subnet from the same database, how does the daemon track which one it handed out vs which one the other server handed out? 
> 
> -- 
> 
> Munroe Sollog 
> Senior Network Engineer 
> munroe at lehigh.edu 
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20171213/a4d98386/attachment.htm>


More information about the Kea-users mailing list