All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
To: Jakub Witczak <jakub.witczak@ericsson.com>
Cc: "lttng-dev@lists.lttng.org" <lttng-dev@lists.lttng.org>
Subject: Re: relayd with many consumer daemons
Date: Tue, 27 Feb 2018 12:02:24 -0500	[thread overview]
Message-ID: <20180227170224.GA12011__48558.4121350714$1519750836$gmane$org@joraj-alpa> (raw)
In-Reply-To: <HE1PR0701MB234771056BD3FA6FF3001B9689C00@HE1PR0701MB2347.eurprd07.prod.outlook.com>

Hi Kuba,

On Tue, Feb 27, 2018 at 03:34:59PM +0000, Jakub Witczak wrote:
> 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 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>

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?

Cheers

-- 
Jonathan Rajotte-Julien
EfficiOS
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

       reply	other threads:[~2018-02-27 17:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <HE1PR0701MB234771056BD3FA6FF3001B9689C00@HE1PR0701MB2347.eurprd07.prod.outlook.com>
2018-02-27 17:02 ` Jonathan Rajotte-Julien [this message]
     [not found] ` <20180227170224.GA12011@joraj-alpa>
2018-02-28  9:30   ` relayd with many consumer daemons Jakub Witczak
     [not found]   ` <HE1PR0701MB2347BB0E10ECDA1233A830D889C70@HE1PR0701MB2347.eurprd07.prod.outlook.com>
2018-02-28 15:57     ` Jonathan Rajotte-Julien
     [not found]     ` <20180228155727.GI12011@joraj-alpa>
2018-03-01  9:10       ` Jakub Witczak
2018-02-27 15:34 Jakub Witczak

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='20180227170224.GA12011__48558.4121350714$1519750836$gmane$org@joraj-alpa' \
    --to=jonathan.rajotte-julien@efficios.com \
    --cc=jakub.witczak@ericsson.com \
    --cc=lttng-dev@lists.lttng.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.