[lttng-dev] health check and relaunch of lttng daemons

Anand Neeli anand.neeli at gmail.com
Thu Oct 23 03:07:40 EDT 2014

Hi All,
I have few queries related to notifications when lttng daemons die and
their spawning and health-check

- When relayd dies then sessiond gets error of connection reset, but it
doesnt try to reconnect to relayd again. It just lies on system without
being functional.

- on a system with multiple nodes, relayd can be spawned on any node. Is
there a way for the sessiond to discover or get relayd IP-address. (Again
in case relayd dies and gets spawned on different node, then sessiond has
to discover and re-connect)

- How is the health_check used. Is it deprecated? coz in lttng.h i see
extern LTTNG_DEPRECATED("This call is now obsolete.")
int lttng_health_check(enum lttng_health_component c);

If health_check can be used for relayd and sessiond?
Can anyone provide more pointers or example code for health check?

- it becomes really important to get notification/signal from relayd, so
that software can be added to respawn sessiond.
please let me know if there is anyway of doing this.

Anand Neeli

On Tue, Oct 21, 2014 at 12:10 AM, Anand Neeli <anand.neeli at gmail.com> wrote:

> one more point:
> if there is a way to kill/exit sessiond on a connection reset then will be
> easier to re-launch it again
> wondering if anything of that sort can be done
> Thanks,
> Anand Neeli
> On Tue, Oct 21, 2014 at 12:02 AM, Anand Neeli <anand.neeli at gmail.com>
> wrote:
>> Hi All,
>> if relayd gets killed i see there is connection reset which happens at
>> client.
>> Is there a way to relaunch the sessiond/consumerd on a connection reset?
>> can some hooks be added or helper application be written to relaunch
>> sessiond in case exit of relayd or any other connection reset?
>> Thanks,
>> Anand Neeli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20141023/668e3c61/attachment.html>

More information about the lttng-dev mailing list