<div><br><div class="gmail_quote"><div>On Thu, 16 Feb 2017 at 04:09, Jeff Darcy &lt;<a href="mailto:jdarcy@redhat.com">jdarcy@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">One of the issues that has come up with multiplexing is that all of the bricks in a process end up sharing a single log file.  The reaction from both of the people who have mentioned this is that we should find a way to give each brick its own log even when they&#39;re in the same process, and make sure gf_log etc. are able to direct messages to the correct one.  I can think of ways to do this, but it doesn&#39;t seem optimal to me.  It will certainly use up a lot of file descriptors.  I think it will use more memory.  And then there&#39;s the issue of whether this would really be better for debugging.  Often it&#39;s necessary to look at multiple brick logs while trying to diagnose this problem, so it&#39;s actually kind of handy to have them all in one file.  Which would you rather do?<br class="gmail_msg">
<br class="gmail_msg">
(a) Weave together entries in multiple logs, either via a script or in your head?<br class="gmail_msg">
<br class="gmail_msg">
(b) Split or filter entries in a single log, according to which brick they&#39;re from?<br class="gmail_msg">
<br class="gmail_msg">
To me, (b) seems like a much more tractable problem.  I&#39;d say that what we need is not multiple logs, but *marking of entries* so that everything pertaining to one brick can easily be found.  One way to do this would be to modify volgen so that a brick ID (not name because that&#39;s a path and hence too long) is appended/prepended to the name of every translator in the brick.  Grep for that brick ID, and voila!  You now have all log messages for that brick and no other.  A variant of this would be to leave the names alone and modify gf_log so that it adds the brick ID automagically (based on a thread-local variable similar to THIS).  Same effect, other than making translator names longer, so I&#39;d kind of prefer this approach.  Before I start writing the code, does anybody else have any opinions, preferences, or alternatives I haven&#39;t mentioned yet?</blockquote><div><br></div><div>I like this idea. +1</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
Gluster-devel mailing list<br class="gmail_msg">
<a href="mailto:Gluster-devel@gluster.org" class="gmail_msg" target="_blank">Gluster-devel@gluster.org</a><br class="gmail_msg">
<a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.gluster.org/mailman/listinfo/gluster-devel</a><br class="gmail_msg">
</blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature">- Atin (atinm)</div>