How can we make babeltrace survive the restart of the node and resume after restart

180 Views Asked by At

In lttng live streaming and looking at it through babeltrace; when the node restarts, it continues to send the traces but babeltrace has already done a shutdown because the flow has ended. So in this stage if babeltrace is restarted manually, it resumes its functionality and works fine.

But how we can make the babeltrace survive the restart and resume after restart? We need this as we post-process babeltrace output and the tests are run during the night.

1

There are 1 best solutions below

3
jgalar On

Babeltrace maintainer here!

There is currently no "retry" option in Babeltrace's live mode. If I understand correctly, you would like for Babeltrace to retry to connect to the remote relay daemon periodically after a connection is dropped? (Ungracefully, I assume)

I have no immediate recommendation except perhaps writing a shell script which re-launches Babeltrace if it exits.

Feel free to ask more questions on the [email protected] mailing list.