1

在 lttng 直播并通过 babeltrace 查看;当节点重新启动时,它会继续发送跟踪,但 babeltrace 已经关闭,因为流程已经结束。因此,在这个阶段,如果 babeltrace 手动重新启动,它会恢复其功能并正常工作。

但是我们如何才能让 babeltrace 在重启后存活并在重启后恢复呢?我们需要这个,因为我们对 babeltrace 输出进行后处理,并且测试在夜间运行。

4

1 回答 1

1

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 lttng-dev@lists.lttng.org mailing list.

于 2015-04-20T21:10:31.210 回答