Usage of Step choose

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

 



On 05/27/2014 03:55 PM, Sahana wrote:
> HI all,
>
> Recently I was playing with crushmaps. I would like to know the
> difference between step choose  and step chooseleaf.
>
> when I used :
>
> ruleset rule1{
>
> ...
> step take default
> step choose firstn 0 host
> step emit
> }
>
> And I tested above using crushtool, it returned  ids of bucket host.
>

You want to have devices/osds to place your data on.

> But when I used it in cluster, it chose osds.
>
> If this works to get devices, then why we need chooseleaf.
>

Chooseleaf goes into that leaf and keeps searching until it finds a 
device. Choose only goes down only leaf and doesn't keep searching 
deeper into the tree.

In most situation chooseleaf is sufficient.

> Regards
> Sahana.
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users at lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>


-- 
Wido den Hollander
Ceph consultant and trainer
42on B.V.

Phone: +31 (0)20 700 9902
Skype: contact42on


[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