Re: Crush rule check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Op 12 december 2016 om 9:08 schreef Adrian Saul <Adrian.Saul@xxxxxxxxxxxxxxxxx>:
> 
> 
> 
> Thanks Wido.
> 
> I had found the show-utilization test, but had not seen show-mappings - that confirmed it for me.
> 

One thing to check though. The number of DCs is a fixed number right? You will always have two DCs with X hosts.

In that case:

  step choose firstn 2 type datacenter
  step chooseleaf firstn -2 type host

First, take 2 of the type 'datacenter' and then find the remaining hosts. But since you will always use size = 4 you might even try:

rule sydney-ssd {
        ruleset 6
        type replicated
        min_size 4
        max_size 4
        step take ssd-sydney
        step choose firstn 2 type datacenter
        step chooseleaf firstn 2 type host
        step emit
}

This way the ruleset will only work for size = 4.

Wido


> thanks,
>  Adrian
> 
> 
> > -----Original Message-----
> > From: Wido den Hollander [mailto:wido@xxxxxxxx]
> > Sent: Monday, 12 December 2016 7:07 PM
> > To: ceph-users@xxxxxxxxxxxxxx; Adrian Saul
> > Subject: Re:  Crush rule check
> >
> >
> > > Op 10 december 2016 om 12:45 schreef Adrian Saul
> > <Adrian.Saul@xxxxxxxxxxxxxxxxx>:
> > >
> > >
> > >
> > > Hi Ceph-users,
> > >   I just want to double check a new crush ruleset I am creating - the intent
> > here is that over 2 DCs, it will select one DC, and place two copies on separate
> > hosts in that DC.  The pools created on this will use size 4  and min-size 2.
> > >
> > >  I just want to check I have crafted this correctly.
> > >
> >
> > I suggest that you test your ruleset with crushtool like this:
> >
> > $ crushtool -i crushmap.new --test --rule 6 --num-rep 4 --show-utilization $
> > crushtool -i crushmap.new --test --rule 6 --num-rep 4 --show-mappings
> >
> > You can now manually verify if the placement goes as intended.
> >
> > Wido
> >
> > > rule sydney-ssd {
> > >         ruleset 6
> > >         type replicated
> > >         min_size 2
> > >         max_size 10
> > >         step take ssd-sydney
> > >         step choose firstn -2 type datacenter
> > >         step chooseleaf firstn 2 type host
> > >         step emit
> > > }
> > >
> > > Cheers,
> > >  Adrian
> > >
> > >
> > >
> > > Confidentiality: This email and any attachments are confidential and may be
> > subject to copyright, legal or some other professional privilege. They are
> > intended solely for the attention and use of the named addressee(s). They
> > may only be copied, distributed or disclosed with the consent of the
> > copyright owner. If you have received this email by mistake or by breach of
> > the confidentiality clause, please notify the sender immediately by return
> > email and delete or destroy all copies of the email. Any confidentiality,
> > privilege or copyright is not waived or lost because this email has been sent
> > to you by mistake.
> > > _______________________________________________
> > > ceph-users mailing list
> > > ceph-users@xxxxxxxxxxxxxx
> > > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> Confidentiality: This email and any attachments are confidential and may be subject to copyright, legal or some other professional privilege. They are intended solely for the attention and use of the named addressee(s). They may only be copied, distributed or disclosed with the consent of the copyright owner. If you have received this email by mistake or by breach of the confidentiality clause, please notify the sender immediately by return email and delete or destroy all copies of the email. Any confidentiality, privilege or copyright is not waived or lost because this email has been sent to you by mistake.
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux