All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sage Weil <sage@newdream.net>
To: "Adam C. Emerson" <aemerson@redhat.com>
Cc: Gregory Farnum <gfarnum@redhat.com>,
	The Sacred Order of the Squid Cybernetic
	<ceph-devel@vger.kernel.org>
Subject: Re: A Transformation of our Global Context
Date: Fri, 10 Jun 2016 17:20:51 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.2.11.1606101716180.6221@cpach.fuggernut.com> (raw)
In-Reply-To: <20160610210433.GA16959@ultraspiritum.eng.arb.redhat.com>

On Fri, 10 Jun 2016, Adam C. Emerson wrote:
> On 10/06/2016, Sage Weil wrote:
> > I think the crux of the issue is the debug/logging code.  Almost all
> > the other uses of cct are related to config options that are
> > per-cluster.
> 
> That is correct. I thought we might pull some things like (like the
> Crypto stuff) while we were at it but that was more "As long as I'm
> here anyway I might as well see if there's anything more to do..."
> 
> > And with logging... it seems like even this is really a per-cluster
> > (well, per entity) thing.  Sorting through a log file that combines
> > output from two different objecters sounds horrific, and when we
> > cram multiple OSDs into one process, we're going to want them to
> > still feed into different log files.
> 
> This is a good point that I had not considered. Though, I'm not sure
> if the un-separated case is that much better. I think part of the
> savings we would want from multi-OSD work (at least in principle) is
> to be able to have them share messengers and other overhead. In that
> case giving each OSD its own fully fledged CephContext doesn't make
> sense, I don't think.

The messengers aren't tied to CephContext, so I don't think this changes 
things in that regard.  I'm guessing we'll end up with something where 
each entity has a thing that implements the Messenger interface but many 
of those are sharing all their resources behind the scenes (thread pools, 
multiplexing their connections, etc.).  We'll have to figure out how the 
config options related to messenger itself are handled, but I think that 
oddity needs to be done explicitly anyway.  We wouldn't for instance, want 
to assume that all clusters in the same process must share the same 
messenger options.  (Maybe we invent an entity that governs the shared 
resources (process.NNN) and somehow direct config options/admin socket 
commands/whatever toward that?  Who knows.)

> Some form of sterring might work, perhaps making the log system smart
> enough to shove things around based on subsystem or an entity
> identifier or something.
> 
> > How bad is the cct plumbing patch?  I fear this might still be the
> > best path forward...
> 
> It's not great? Really at all. I wrote it and I don't like it. I
> could pull it up and smack it into shape and make sure it passes tests
> if it were necessary.

Is it pushed somewhere?  Maybe much of the pain is related to the clock 
thing...

sage

  reply	other threads:[~2016-06-10 21:20 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-10 18:50 A Transformation of our Global Context Adam C. Emerson
2016-06-10 19:47 ` Gregory Farnum
2016-06-10 19:58   ` Adam C. Emerson
2016-06-10 20:06     ` Gregory Farnum
2016-06-10 20:15       ` Adam C. Emerson
2016-06-10 20:40         ` Sage Weil
2016-06-10 20:45           ` Adam C. Emerson
2016-06-10 20:53             ` Sage Weil
2016-06-10 23:57               ` Joao Eduardo Luis
2016-06-10 20:38       ` Sage Weil
2016-06-10 21:04         ` Adam C. Emerson
2016-06-10 21:20           ` Sage Weil [this message]
2016-06-10 22:51             ` Adam C. Emerson
2016-11-11 21:31             ` Yehuda Sadeh-Weinraub
2016-11-11 22:17               ` Bassam Tabbara
2016-11-11 22:53                 ` Yehuda Sadeh-Weinraub
2016-11-11 23:29                   ` Bassam Tabbara
2016-11-11 23:45                     ` Sage Weil
2016-11-11 23:51                       ` Bassam Tabbara
2016-11-12  0:33                     ` Matt Benjamin
2016-11-12  0:40                       ` Bassam Tabbara
2016-11-12  2:37                         ` Matt Benjamin
2016-11-14 16:10                       ` Adam C. Emerson
     [not found]                   ` <BLUPR0301MB200478F7C6DC349474A0B5F8A7BB0@BLUPR0301MB2004.namprd03.prod.outlook.com>
2016-11-14 16:08                     ` Adam C. Emerson
2016-06-10 20:28     ` Allen Samuels
2016-06-10 20:43       ` Adam C. Emerson
2016-06-10 22:38         ` Allen Samuels
2016-06-10 22:44           ` Adam C. Emerson

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=alpine.DEB.2.11.1606101716180.6221@cpach.fuggernut.com \
    --to=sage@newdream.net \
    --cc=aemerson@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=gfarnum@redhat.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 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.