Ceph Replication Rule

ermanishchawla

Well-Known Member
Mar 23, 2020
332
37
48
38
What is the difference between Crush Rule1

Rule 1
Code:
rule replicated_rule1 {
    id 0
    type replicated
    min_size 1
    max_size 10
    step take default
    step chooseleaf firstn 0 type chassis
    step emit
}

Rule2
Code:
rule replicated_rule2 {
    id 0
    type replicated
    min_size 1
    max_size 10
    step take default
    step chooseleaf firstn 0 type chassis
    step chooseleaf firstn 1 type hosts
    step chooseleaf firstn 1 type osd
    step emit
}


As I am seeing similar outcome in ceph

Can anyone explain