Closed liedekef closed 9 years ago
Thruk does not use persistent connections. Local unix sockets are also faster than xinetd.
Hi Sven,
yes, I know that unix sockets are faster. But the power of thruk comes from the fact that you can install it (if wanted) on another server than the one running naemon/nagios/icinga. Also, the Livestatus perl library that comes with thruk is ready to use "keepalive" connections, so adding it as an option should not be difficult I guess (I was under the impresson that it was already supported, but apparently I'm wrong).
The livestatus perl library was prepared to support keepalive but it never worked. Thats why there is no switch to enable it. There were more problems with keepalive than without like hanging connections, etc...
I just got bitten by the limit of livestatus connections per second in xinetd (I configured 100 connections per second). Apparentlty thruk/panorama goes up to that limit, probably even more so if more than 1 person uses the same dashboards. So I was wondering if thruk uses persistent livestatus connections or not? I know mk_livestatus supports this (and probably also naemon livestatus). I tried using "keepalive=1" in thruk_local.conf like this:
but I still see this in /var/log/messages:
So it doesn't seem to be like it is doing "keepalive" here ...
Btw: I switched to using the livestatus unix socket for now, but apparently the config wants "peer" to point to the socket, not "socket".