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
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to