- # begin crush map
- tunable choose_local_tries 0
- tunable choose_local_fallback_tries 0
- tunable choose_total_tries 50
- tunable chooseleaf_descend_once 1
- tunable straw_calc_version 1
- # devices
- device 0 osd.0
- device 1 osd.1
- device 2 osd.2
- device 3 osd.3
- device 4 osd.4
- device 5 osd.5
- device 6 osd.6
- device 7 osd.7
- device 8 osd.8
- device 9 osd.9
- device 10 osd.10
- device 11 osd.11
- device 12 osd.12
- device 13 osd.13
- # types
- type 0 osd
- type 1 host-ssd
- type 2 host-sata
- type 3 datacenter
- type 4 root
- # buckets
- host-sata host-01 {
- id -1 # do not change unnecessarily
- # weight 1.350
- alg straw
- hash 0 # rjenkins1
- item osd.0 weight 0.270
- item osd.1 weight 0.270
- item osd.2 weight 0.270
- item osd.3 weight 0.270
- item osd.6 weight 0.270
- }
- host-sata host-02 {
- id -2 # do not change unnecessarily
- # weight 1.350
- alg straw
- hash 0 # rjenkins1
- item osd.7 weight 0.270
- item osd.8 weight 0.270
- item osd.9 weight 0.270
- item osd.10 weight 0.270
- item osd.11 weight 0.270
- }
- host-ssd host-03 {
- id -3 # do not change unnecessarily
- # weight 0.360
- alg straw
- hash 0 # rjenkins1
- item osd.4 weight 0.180
- item osd.5 weight 0.180
- }
- host-ssd host-04 {
- id -4 # do not change unnecessarily
- # weight 0.360
- alg straw
- hash 0 # rjenkins1
- item osd.12 weight 0.180
- item osd.13 weight 0.180
- }
- datacenter dc1 {
- id -5 # do not change unnecessarily
- # weight 0.450
- alg straw
- hash 0 # rjenkins1
- item host-01 weight 0.270
- item host-03 weight 0.180
- }
- datacenter dc2 {
- id -6 # do not change unnecessarily
- # weight 0.450
- alg straw
- hash 0 # rjenkins1
- item host-02 weight 0.270
- item host-04 weight 0.180
- }
- root default {
- id -7 # do not change unnecessarily
- # weight 2.000
- alg straw
- hash 0 # rjenkins1
- item dc1 weight 1.000
- item dc2 weight 1.000
- }
- # rules
- rule hybrid {
- ruleset 0
- type replicated
- min_size 1
- max_size 10
- step take default
- step chooseleaf firstn 0 type datacenter
- step emit
- }