Question about lttng daemons
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
I can answer your first question ;)
Quoted 4 lines · changz
Hi all,
Is that possible to launch lttng daemons as a system service? i.e. we can start/stop/restart it like the services under
/etc/init.d.
Absolutely. Note that you only need to auto-start the lttng-sessiond. The consumerd daemons get started automatically by the sessiond when trace sessions are created. This is a nice way to start a root session daemon at boot time, which then allows users in the "tracing" group to use the kernel tracer without being root themselves.
We don't ship an example in the source tree, since this is usually distro-specific, but for reference you can look at the Upstart script that is available in the Ubuntu package:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/quantal/lttng-tools/quantal/view/head:/debian/lttng-tools.lttng-sessiond.upstart
Alex
Quoted 13 lines
Another concern is if here is a way to recover or continue the dataflow once the daemons get crashed.
I hope some vital trace info can be still kept even if daemon crashes.BR
zheng_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
A message that is not in the archive (sent off-list or not yet received): [email protected]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi guys,
Alexandre Montplaisir:
Quoted 19 lines
Hi,
I can answer your first question ;)
Quoted 5 lines · changz
Hi all,
Is that possible to launch lttng daemons as a system service? i.e. we can start/stop/restart it like the services under
/etc/init.d.Absolutely. Note that you only need to auto-start the lttng-sessiond. The consumerd daemons get started automatically by the sessiond when trace sessions are created. This is a nice way to start a root session daemon at boot time, which then allows users in the "tracing" group to use the kernel tracer without being root themselves.
Quoted 6 lines
We don't ship an example in the source tree, since this is usually distro-specific, but for reference you can look at the Upstart script that is available in the Ubuntu package:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/quantal/lttng-tools/quantal/view/head:/debian/lttng-tools.lttng-sessiond.upstart
We could maybe provide this upstart script in extras/ ?
Quoted 6 lines
Alex
Quoted 3 lines
Another concern is if here is a way to recover or continue the dataflow once the daemons get crashed. I hope some vital trace info can be still kept even if daemon crashes.
Right now we *don't* have this kind of feature. We are hoping someday that we'll be able to dump the state or configuration of tracing session onto disk that can be later on loaded by another daemon for instance.
However, we do offer (upstream master not yet released) a health check API call which return the health status of the session daemon (lttng-sessiond). So for now, you can at least monitor the daemon but still no mechanism to save tracing session info.
Please note that if the daemon crashes, the tracers are NOT impacted meaning that user space applications don't crash, they will simply continue their way without tracing and the kernel tracing will also stop.
Cheers!
David
Quoted 5 lines
Quoted 5 lines
BR zheng
Quoted 8 lines
Quoted 3 lines
_______________________________________________ lttng-dev mailing list [email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev_______________________________________________ lttng-dev mailing list [email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
-----BEGIN PGP SIGNATURE-----
iQEcBAEBCgAGBQJQEVo8AAoJEELoaioR9I029xgIAMnnjcKFJHjTXpTECXIWToHr 8YcksDEowDiIrqzIJiDIWisxgCs285QuLaA+NMYb7zlyQ9MLSq9JcmFNfNW5s0aG MmCSDpq50gg+g7OZH7wKMrEl+te3g8Cu3ZEOktHG8R+LCEExiawVockuYFHBmfL9 rXOa3imt4rUn2LW8428JvSwbkQxS6kknR12GH594YOqPxrGxTBvSlTukBCECPREj Ng2s1DMCcGHav1vXo1+W1rftv+n85C9Uih369ay+J8dISU5almSJxbH9E/QWhF0u 2ghSkoit2+09Vr6xMGKUcEuAZkJ+Vu/BZB4SybwVZay8df3GZ1Fkfe1IsW3/Mnk= =OeB0
-----END PGP SIGNATURE-----
A message that is not in the archive (sent off-list or not yet received): [email protected]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 5 lines
Quoted 5 lines
We don't ship an example in the source tree, since this is usually distro-specific, but for reference you can look at the Upstart script that is available in the Ubuntu package:
Quoted 3 lines
We could maybe provide this upstart script in extras/ ?
Yes, probably, with also the systemd script and the old style initscript. (I've made both)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlARW0sACgkQFQrZ7GzHX2qV4gCg50X4koCVPUft///BIdFy0wBi gmEAn1c0JN9Rv4BFecT75Kp1DaXUYLAw
=EH/p
-----END PGP SIGNATURE-----
A message that is not in the archive (sent off-list or not yet received): [email protected]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Yannick Brosseau:
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
We don't ship an example in the source tree, since this is usually distro-specific, but for reference you can look at the Upstart script that is available in the Ubuntu package:
Quoted 8 lines
Quoted 1 line
We could maybe provide this upstart script in extras/ ?
Yes, probably, with also the systemd script and the old style initscript. (I've made both)
Great! Send me that as a patch or pull request, I'll be glad to merge that!
David
Quoted 5 lines
_______________________________________________ lttng-dev mailing list [email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
-----BEGIN PGP SIGNATURE-----
iQEcBAEBCgAGBQJQEVvpAAoJEELoaioR9I028VsIALVpAuI7hzHHrNjNHTLdGJBy eTg+tTN2EpWRg+nBAYTWBHfrY+ZYmzdvl2gaXNDTzJm7nMTKEzdYbgIAkYH5FwM6 2Mi4eg8oKC96wnEisEW+328aI17FIevclapHv7Ky816g6YFSnJ/L5Rbu/VRoJFoU QMY+cINDt9Sbx0y4heLRYED9pEFBu2PMfmf3RVXh76A/J0vcbWB8u9Pmi9GCloEI dKGURUbXhLVb9WxoJI2zosmYyJWwe6b2o+xA98wvFx+MYpVOGC4t3aOWb1Zra0dL rddQPo+XuM2ldDVn89Qt45c2KXouTk+1W0CjTm5ffpZMPoioGkvob5cC3aDcFFk= =NuDF
-----END PGP SIGNATURE-----