Werk #5590: Fixed possible deadlock in shutdown/restart procedure

KomponenteLivestatus-Proxy
TitelFixed possible deadlock in shutdown/restart procedure
Datum2018-01-02 15:23:52
Checkmk EditionCheckmk Enterprise Edition (CEE)
Checkmk Version1.5.0i3
LevelTrivial Change
KlasseBug Fix
KompatibilitätKompatibel - benötigt kein manuelles Eingreifen

During the shutdown/restart procedure of the livestatus proxy daemon a deadlock could occur. It seems this could rarely happen when the system running the process is under high load together with a large number of sites (>100) configured.

When this situation occures, you can see several left over liveproxyd processes (master + several site processes) which can only be terminated with SIGKILL. When looking at the processes with strace, you can see hanging futex() calls.

Workaround: In such a situation it is safe to simply kill all those processes using SIGKILL and start a clean liveproxyd processes after that.