All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mykola Golub <mgolub@mirantis.com>
To: Sage Weil <sweil@redhat.com>
Cc: GuangYang <yguang11@outlook.com>,
	"sjust@redhat.com" <sjust@redhat.com>,
	"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: Pool setting for recovery priority
Date: Mon, 21 Sep 2015 16:32:19 +0300	[thread overview]
Message-ID: <20150921133218.GB23240@gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1509160920120.14342@cobra.newdream.net>

On Wed, Sep 16, 2015 at 09:23:07AM -0700, Sage Weil wrote:
> On Wed, 16 Sep 2015, GuangYang wrote:
> > Hi Sam,
> > As part of the effort to solve problems similar to issue #13104 (http://tracker.ceph.com/issues/13104), do you think it is appropriate to add some parameters to pool setting:
> >    1. recovery priority of the pool - we have a customized pool recovery priority (like process's nice value) to favor some pools over others. For example, the bucket index pool is usually much much smaller but important to recover first (e.g. might affect write latency as like issue #13104).
> >    2. pool level recovery op priority - currently we have a low priority for recovery op (by default it is 10 while client io's priority is 63), is it possible to have a pool setting to customized the priority on pool level.
> > 
> > The purpose is to give some flexibility in terms of favor some pools over others when doing recovery, in our case using radosgw, we would like to favor bucket index pool as that is on the write path for all requests.
> 
> I think this makes sense, and is analogous to
> 
> 	https://github.com/ceph/ceph/pull/5922
> 
> which does per-pool scrub settings.  I think the only real question is 
> whether pg_pool_t is the right place to keep piling these parameters in, 
> or whether we want some unstructured key/value settings or something.

I aggree that adding a bunch of new rarely used fields to pg_pool_t
might not be a very good idea. Still storing these options here looks
convenient (accessing, updating...). What do you think if I add
something like this in pg_pool_t instead?

  typedef boost::variant<string,int,double> pool_opt_value_t;
  typedef std::map<pool_opt_key_t,pool_opt_value_t> opts_t;
  opts_t opts;

(in reality I suppose it will be more compicated but will have
something like this in base).

Usually opts will be empty or have only one or two settings, so it
will not consume much space.

Or where do you suggest to store them instead?

BTW, I see we already have in pg_pool_t:

  map<string,string> properties;  ///< OBSOLETE

I wonder what it was supposed to be used for and why it is marked
obsolete?

-- 
Mykola Golub
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2015-09-21 13:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-16 15:48 Pool setting for recovery priority GuangYang
2015-09-16 16:23 ` Sage Weil
2015-09-16 17:58   ` GuangYang
2015-09-21 13:32   ` Mykola Golub [this message]
2015-09-25 11:44     ` Mykola Golub
2015-09-25 14:09       ` Sage Weil
2015-09-25 17:50         ` Mykola Golub
2015-09-25 18:02           ` Sage Weil
2015-09-25 18:09             ` Mykola Golub
2015-09-29 17:23         ` GuangYang
2015-09-29 18:47           ` Mykola Golub
2015-09-29 20:57             ` GuangYang

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=20150921133218.GB23240@gmail.com \
    --to=mgolub@mirantis.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=sjust@redhat.com \
    --cc=sweil@redhat.com \
    --cc=yguang11@outlook.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.