From: jakub.witczak@ericsson.com (Jakub Witczak)
Subject: [lttng-dev] relayd with many consumer daemons
Date: Wed, 28 Feb 2018 09:30:27 +0000 [thread overview]
Message-ID: <HE1PR0701MB2347BB0E10ECDA1233A830D889C70@HE1PR0701MB2347.eurprd07.prod.outlook.com> (raw)
In-Reply-To: <20180227170224.GA12011@joraj-alpa>
Hi,
> > I would like to consult on setup where relayd is serving multiple consumer
> daemons at the same time.
>
> On the same host? On multiple hosts?
> In both cases, it is supported.
It's a setup where traces are transferred over the network to remote relayd.
> It is recommended to have unique session id across multiples
> sessiond/consumer on the same host but not required.
> > I assume above setup is nothing new and is not a problem as long as each
> of consumer daemons is having unique tracing session (please confirm).
>
> As for multiple hosts, relayd also differentiate based on the hostname.
>
> From lttng-relayd man page:
>
> By default, the relay daemon writes the traces to:
>
> $LTTNG_HOME/lttng-traces/HOSTNAME/SESSION/DOMAIN
>
> with:
>
> HOSTNAME
> Remote hostname.
>
> SESSION
> Full session name.
>
> DOMAIN
> Tracing domain.
>
> You can override the default output directory prefix
> ($LTTNG_HOME/lttng-traces) with the --output option. The other parts
> depend on the remote configuration.
>
> For example, user on host DATA1 create and start a tracing a session
> (live/streaming) with the name MySession.
> Relayd will create its internal state with the hostname, session name, time.
> Hence, trace data will be written somewhere like this:
> $LTTNG_HOME/lttng-traces/DATA1/MySession-TIMESTAMP/DOMAIN
>
> At the same time on host DATA2, a user create and start a tracing session
> (live/streaming) with the name MySession.
> Trace data will be written somewhere like this:
> $LTTNG_HOME/lttng-traces/DATA2/MySession-TIMESTAMP/DOMAIN
>
> >
> > But what if I would like to have more consumer daemons collecting data
> from *single session* - is it possible to aggregate data in relayd?
>
> Note that Babeltrace can read and merge data from multiple sources:
> babeltrace $LTTNG_HOME/lttng-traces/DATA1/MySession-TIMESTAMP
> $LTTNG_HOME/lttng-traces/DATA2/MySession-
> TIMESTAMP/DOMAIN<Paste>
>
This looks very promising. Can it merge sessions in live mode as well?
> Not sure what you mean by "consumer daemons collecting data from *single
> session*".
>
> Do you mean having multiple consumer "writing" to the same session on
> lttng-relayd side?
> What would motivate this design choice, is a limitation you encountered?
>
> Is it not sufficient that multiple traces can be merged using babeltrace?
Yes. I meant multiple consumers (acting as single host but generated elsewhere (traffic NATed from different machine)) writing to single session in relayd.
Babeltrace merge could be enough, but hard to say without testing.
Regards
Kuba
next prev parent reply other threads:[~2018-02-28 9:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-27 15:34 Jakub Witczak
2018-02-27 17:02 ` Jonathan Rajotte-Julien
2018-02-28 9:30 ` Jakub Witczak [this message]
2018-02-28 15:57 ` Jonathan Rajotte-Julien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=HE1PR0701MB2347BB0E10ECDA1233A830D889C70@HE1PR0701MB2347.eurprd07.prod.outlook.com \
--to=jakub.witczak@ericsson.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox