All of lore.kernel.org
 help / color / mirror / Atom feed
From: Loic Dachary <loic@dachary.org>
To: Shylesh Kumar <shmohan@redhat.com>
Cc: Ceph Development <ceph-devel@vger.kernel.org>
Subject: controlling which OSD goes to which PG / testing a fix
Date: Mon, 11 May 2015 13:51:08 +0200	[thread overview]
Message-ID: <555097AC.6000000@dachary.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1755 bytes --]

Hi,

Sorry I did not get a chance to answer in time to your question on IRC. 

<shylesh> loicd: a ruleset having  {step take osd.0
<shylesh>         step emit
<shylesh> }  should choose osd.0 for all pgs right 
<shylesh> wats the error with this crushmap ruleset http://pastebin.com/yXn1t4sU
<shylesh> i want all pgs to be on [0,1,3] which is working as expected
<shylesh> but if 3 goesdown i want it to be [0,1,4] .. this is not happening 
<loicd> shylesh: hi !
<loicd> shylesh: looking at http://pastebin.com/yXn1t4sU (answering here because that's the channel where non dev questions are best archived)
<loicd> shylesh: that's a very unusual crush map. You want to precisely control the order in which the OSDs are assigned to a placement group, is that right ? 
<loicd> If that's so, maybe your use case would be better served by other means. What are you trying to achieve ? Measure the bandwidth between OSDs during repair maybe ? 
<shylesh> loicd: I want one group of PG mapped to [0,1,3] and another group of pgs(may be from different pool) mapped to [0,1,2] and I will mark 3 as out and 2 as down 
<shylesh> so that new group becomes [0,1,4] , osd4 will have degraded and misplaced pgs to get mapped
<shylesh> there is a fix i want to test , degraded pgs should get priority over misplaced pgs
<shylesh> so now i want to see on osd4 degraded will be recovered first and then misplaced
<shylesh> now the mapping is working fine but if suppose 2 goes down i will be left with [0,1] for some reason 4 is not joining the replica group

Could you show the fix that you want to test ? I may be able to figure out a simpler strategy to verify that it does what is expected.

Cheers

-- 
Loïc Dachary, Artisan Logiciel Libre


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

                 reply	other threads:[~2015-05-11 11:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=555097AC.6000000@dachary.org \
    --to=loic@dachary.org \
    --cc=ceph-devel@vger.kernel.org \
    --cc=shmohan@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.