Hello Geeks
Can someone please review and comment on my custom crush maps. I would really appreciate your help
My setup : 1 Rack , 4 chassis , 3 storage nodes each chassis ( so total 12 storage nodes ) , pool size = 3
What i want to achieve is:
- Survive chassis failures , even if i loose 2 complete chassis (containing 3 nodes each) , data should not be lost
- The crush ruleset should store each copy on a unique chassis and host
For example :
copy 1 ---> c1-node1
copy 2 ---> c2-node3
copy 3 ---> c4-node2
Here is my crushmap
=====================
chassis block_storage_chassis_4 {
id -17 # do not change unnecessarily
# weight weight 163.350
alg straw
hash 0 # rjenkins1
item c4-node1 weight 54.450
item c4-node2 weight 54.450
item c4-node3 weight 54.450
}
chassis block_storage_chassis_3 {
id -16 # do not change unnecessarily
# weight weight 163.350
alg straw
hash 0 # rjenkins1
item c3-node1 weight 54.450
item c3-node2 weight 54.450
item c3-node3 weight 54.450
}
chassis block_storage_chassis_2 {
id -15 # do not change unnecessarily
# weight weight 163.350
alg straw
hash 0 # rjenkins1
item c2-node1 weight 54.450
item c2-node2 weight 54.450
item c3-node3 weight 54.450
}
chassis block_storage_chassis_1 {
id -14 # do not change unnecessarily
# weight 163.350
alg straw
hash 0 # rjenkins1
item c1-node1 weight 54.450
item c1-node2 weight 54.450
item c1-node3 weight 54.450
}
rack block_storage_rack_1 {
id -10 # do not change unnecessarily
# weight 174.240
alg straw
hash 0 # rjenkins1
item block_storage_chassis_1 weight 163.350
item block_storage_chassis_2 weight 163.350
item block_storage_chassis_3 weight 163.350
item block_storage_chassis_4 weight 163.350
}
class block_storage {
id -6 # do not change unnecessarily
# weight 210.540
alg straw
hash 0 # rjenkins1
item block_storage_rack_1 weight 656.400
}
rule ruleset_block_storage {
ruleset 1
type replicated
min_size 1
max_size 10
step take block_storage
step chooseleaf firstn 0 type chassis
step emit
}
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com