Re: crush chooseleaf vs. choose

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

 



On 01/02/2014 10:40 AM, Dietmar Maurer wrote:
I try to understand the default crush rule:

rule data {

         ruleset 0

         type replicated

         min_size 1

         max_size 10

         step take default

         step chooseleaf firstn 0 type host

step emit

}

Is this the same as:

rule data {

         ruleset 0

         type replicated

         min_size 1

         max_size 10

         step take default

         step choose firstn 0 type host

         step choose firstn 1 type osd

         step emit

}

Or what is the correct way to translate ‘chooseleaf’ into ‘choose’?


iirc, chooseleaf goes down the tree and descents into multiple leafs to find what you are looking for.

choose goes into that leaf and tries to find what you are looking for without going into subtrees.

Wido



_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



--
Wido den Hollander
42on B.V.

Phone: +31 (0)20 700 9902
Skype: contact42on
_______________________________________________
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]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux