All of lore.kernel.org
 help / color / mirror / Atom feed
* Idea for optimize an OSD rebuild
@ 2017-03-30  9:47 Vincent Godin
  2017-03-30 10:05 ` huang jun
  2017-03-30 13:26 ` Sage Weil
  0 siblings, 2 replies; 4+ messages in thread
From: Vincent Godin @ 2017-03-30  9:47 UTC (permalink / raw)
  To: ceph-devel

When you replace a failed osd, it has to recover all of its pgs and so
it is pretty busy. Is it possible to tell this OSD to not become
primary for any of its already synchronized pgs till every pgs (of the
OSD) have recovered ? It should accelerate the rebuild process because
this OSD won't have to serve client's read requests but just sync the
writes request from the OSDs owning the primary pgs and recover. Is
there something wrong with this idea ?

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: Idea for optimize an OSD rebuild
@ 2017-03-30  9:56 David Casier
  0 siblings, 0 replies; 4+ messages in thread
From: David Casier @ 2017-03-30  9:56 UTC (permalink / raw)
  To: Vincent Godin; +Cc: Ceph Development

Hi Vincent,

You can define the affinity on the osd :

ceph osd primary-affinity osd.<ID> 0


________________________________________________________

Cordialement,

David CASIER

________________________________________________________


2017-03-30 11:47 GMT+02:00 Vincent Godin <vince.mlist@gmail.com>:
>
> When you replace a failed osd, it has to recover all of its pgs and so
> it is pretty busy. Is it possible to tell this OSD to not become
> primary for any of its already synchronized pgs till every pgs (of the
> OSD) have recovered ? It should accelerate the rebuild process because
> this OSD won't have to serve client's read requests but just sync the
> writes request from the OSDs owning the primary pgs and recover. Is
> there something wrong with this idea ?
> --
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-30 13:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-30  9:47 Idea for optimize an OSD rebuild Vincent Godin
2017-03-30 10:05 ` huang jun
2017-03-30 13:26 ` Sage Weil
2017-03-30  9:56 David Casier

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.