From: Mike Dawson <mike.dawson@cloudapt.com>
To: Gregory Farnum <greg@inktank.com>,
Dan van der Ster <daniel.vanderster@cern.ch>
Cc: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>,
ceph-users <ceph-users@ceph.com>
Subject: Re: [ceph-users] v0.80 Firefly released
Date: Wed, 07 May 2014 14:18:27 -0400 [thread overview]
Message-ID: <536A78F3.8020607@cloudapt.com> (raw)
In-Reply-To: <CAPYLRzhyt3i0sXOGrqZxzrH02+VOjBeMS37xk8ua2K2C2oydkw@mail.gmail.com>
On 5/7/2014 11:53 AM, Gregory Farnum wrote:
> On Wed, May 7, 2014 at 8:44 AM, Dan van der Ster
> <daniel.vanderster@cern.ch> wrote:
>> Hi,
>>
>>
>> Sage Weil wrote:
>>
>> * *Primary affinity*: Ceph now has the ability to skew selection of
>> OSDs as the "primary" copy, which allows the read workload to be
>> cheaply skewed away from parts of the cluster without migrating any
>> data.
>>
>>
>> Can you please elaborate a bit on this one? I found the blueprint [1] but
>> still don't quite understand how it works. Does this only change the crush
>> calculation for reads? i.e writes still go to the usual primary, but reads
>> are distributed across the replicas? If so, does this change the consistency
>> model in any way.
>
> It changes the calculation of who becomes the primary, and that
> primary serves both reads and writes. In slightly more depth:
> Previously, the primary has always been the first OSD chosen as a
> member of the PG.
> For erasure coding, we added the ability to specify a primary
> independent of the selection ordering. This was part of a broad set of
> changes to prevent moving the EC "shards" around between different
> members of the PG, and means that the primary might be the second OSD
> in the PG, or the fourth.
> Once this work existed, we realized that it might be useful in other
> cases, because primaries get more of the work for their PG (serving
> all reads, coordinating writes).
> So we added the ability to specify a "primary affinity", which is like
> the CRUSH weights but only impacts whether you become the primary. So
> if you have 3 OSDs that each have primary affinity = 1, it will behave
> as normal. If two have primary affinity = 0, the remaining OSD will be
> the primary. Etc.
Is it possible (and/or advisable) to set primary affinity low while
backfilling / recovering an OSD in an effort to prevent unnecessary slow
reads that could be directed to less busy replicas? I suppose if the
cost of setting/unsetting primary affinity is low and clients are
starved for reads during backfill/recovery from the osd in question, it
could be a win.
Perhaps the workflow for maintenance on osd.0 would be something like:
- Stop osd.0, do some maintenance on osd.0
- Read primary affinity of osd.0, store it for later
- Set primary affinity on osd.0 to 0
- Start osd.0
- Enjoy a better backfill/recovery experience. RBD clients happier.
- Reset primary affinity on osd.0 to previous value
If the cost of setting primary affinity is low enough, perhaps this
strategy could be automated by the ceph daemons.
Thanks,
Mike Dawson
> -Greg
> Software Engineer #42 @ http://inktank.com | http://ceph.com
> _______________________________________________
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
next prev parent reply other threads:[~2014-05-07 18:18 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 1:05 v0.80 Firefly released Sage Weil
[not found] ` <alpine.DEB.2.00.1405061757540.28165-vIokxiIdD2AQNTJnQDzGJqxOck334EZe@public.gmane.org>
2014-05-07 15:44 ` Dan van der Ster
[not found] ` <536A54C6.4060202-vJEk5272eHo@public.gmane.org>
2014-05-07 15:51 ` Sage Weil
2014-05-07 15:53 ` Gregory Farnum
2014-05-07 18:18 ` Mike Dawson [this message]
2014-05-07 18:30 ` [ceph-users] " Gregory Farnum
2014-05-08 12:20 ` Andrey Korolyov
2014-05-09 21:48 ` Mike Dawson
[not found] ` <536D4D48.5040307-ffsCFlcjuZBWk0Htik3J/w@public.gmane.org>
2014-05-11 12:32 ` Sergey Malinin
[not found] ` <BLU436-SMTP195A770E0A729DF4723DD28DF310@phx.gbl>
2014-05-16 13:09 ` Radosgw - bucket index Sage Weil
2014-05-16 16:42 ` Yehuda Sadeh
2014-05-18 6:25 ` Guang
2014-05-18 23:05 ` Sage Weil
2014-05-19 6:18 ` Guang Yang
2014-05-19 6:47 ` Yehuda Sadeh
2014-05-30 0:35 ` Guang Yang
[not found] ` <0F65B78C-DF9A-40E4-BAAF-7411443DA3B6@outlook.com>
2014-06-02 13:37 ` Guang Yang
[not found] ` <959F3CD3-D69A-4B9C-818C-7C0F241E48EC@outlook.com>
2014-06-06 12:50 ` Guang Yang
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=536A78F3.8020607@cloudapt.com \
--to=mike.dawson@cloudapt.com \
--cc=ceph-devel@vger.kernel.org \
--cc=ceph-users@ceph.com \
--cc=daniel.vanderster@cern.ch \
--cc=greg@inktank.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.