I'm trying to do a two ceph pools with 3 nodes (Site A) and 3 nodes (Site B) with two different rules. The first rule is a stretched Ceph with Site A and Site B and the second rule is just a standalone ceph rule on Site A.
Each of the 6 nodes has 3 OSDs. So total there's 18 OSDs.
I'm wondering if you can put the same hosts (Node 1, 2, 3) with different weightages under different roots in the CRUSH map? Or is there another way to do it?
For example, what I was thinking:
Each of the 6 nodes has 3 OSDs. So total there's 18 OSDs.
I'm wondering if you can put the same hosts (Node 1, 2, 3) with different weightages under different roots in the CRUSH map? Or is there another way to do it?
For example, what I was thinking:
Code:
#All the node are similar to each other
host node1 {
id -3 # do not change unnecessarily
id -4 class ssd # do not change unnecessarily
# weight 10.47926
alg straw2
hash 0 # rjenkins1
item osd.0 weight 3.49309
item osd.1 weight 3.49309
item osd.2 weight 3.49309
}
.
.
.
.
root siteA_project1 {
id -21 # do not change unnecessarily
id -2 class ssd # do not change unnecessarily
alg straw2
hash 0 # rjenkins1
item node1 weight 6.98618
item node2 weight 6.98618
item node3 weight 6.98618
}
root siteB_project1 {
id -22 # do not change unnecessarily
id -1 class ssd # do not change unnecessarily
alg straw2
hash 0 # rjenkins1
item node4 weight 6.98618
item node5 weight 6.98618
item node6 weight 6.98618
}
root siteA_project2 {
id -21 # do not change unnecessarily
id -2 class ssd # do not change unnecessarily
alg straw2
hash 0 # rjenkins1
item node1 weight 3.49309
item node2 weight 3.49309
item node3 weight 3.49309
}
rule replicated_rule_project1 {
id 0
type replicated
step take siteA_project1
step chooseleaf indep 2 type host
step emit
step take siteB_project1
step chooseleaf indep 2 type host
step emit
}
rule replicated_rule_project2 {
id 1
type replicated
step take siteA_project2
step chooseleaf firstn 3 type host
step emit
}