Re: [crush] Selecting the current rack

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

 



On 11/24/2015 07:00 PM, Emmanuel Lacour wrote:
> 
> Dear ceph users,
> 
> 
> I try to write a crush ruleset that will, for a pool size of 3, put a
> copy in another host in the local rack and a copy in another rack. I now
> how to do the later, but I do not understand how to match the current
> rack. Here is my try:
> 
> 
> rule replicate_three_times {
>     ruleset 1
>     type replicated
>     min_size 3
>     max_size 3
>     step take default
>     step chooseleaf firstn 1 type rack
>     step emit
>     step take rack
>     step chooseleaf firstn 1 type host

You probably want 'firstn -1 type host' there.

>     step emit
> }
> 
> 
> I thought that "take rack" will select the rack the primary host is in,
> but it does not compile and claims that it's undefined.

'take rack' selects a 'root' with the name 'rack', that's probably missing.

How many racks do you have? Two? I don't fully understand what you are
trying to do.

> 
> 
> Any help would be welcome :)
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> 


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

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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux