[crush] Selecting the current rack

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

 



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
    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.


Any help would be welcome :)
_______________________________________________
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