Project

General

Profile

Support #8600 » cmbad.txt

map that can compile and containing above directives - Jean-Charles Lopez, 06/14/2014 01:44 PM

 
# 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 chooseleaf_vary_r 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

# types
type 0 osd
type 1 host
type 2 chassis
type 3 rack
type 4 row
type 5 pdu
type 6 pod
type 7 room
type 8 datacenter
type 9 region
type 10 root

# buckets
root default {
id -1 # do not change unnecessarily
# weight 0.000
alg straw
hash 0 # rjenkins1
}
host bcpc-vm1-ssd {
id -4 # do not change unnecessarily
# weight 0.040
alg straw
hash 0 # rjenkins1
item osd.0 weight 0.020
item osd.1 weight 0.020
}
host bcpc-vm2-ssd {
id -8 # do not change unnecessarily
# weight 0.040
alg straw
hash 0 # rjenkins1
item osd.4 weight 0.020
item osd.5 weight 0.020
}
host bcpc-vm3-ssd {
id -10 # do not change unnecessarily
# weight 0.040
alg straw
hash 0 # rjenkins1
item osd.8 weight 0.020
item osd.9 weight 0.020
}
rack rack-ssd {
id -5 # do not change unnecessarily
# weight 0.119
alg straw
hash 0 # rjenkins1
item bcpc-vm1-ssd weight 0.040
item bcpc-vm2-ssd weight 0.040
item bcpc-vm3-ssd weight 0.040
}
root ssd {
id -2 # do not change unnecessarily
# weight 0.119
alg straw
hash 0 # rjenkins1
item rack-ssd weight 0.119
}
host bcpc-vm1-hdd {
id -6 # do not change unnecessarily
# weight 0.040
alg straw
hash 0 # rjenkins1
item osd.2 weight 0.020
item osd.3 weight 0.020
}
host bcpc-vm2-hdd {
id -9 # do not change unnecessarily
# weight 0.040
alg straw
hash 0 # rjenkins1
item osd.6 weight 0.020
item osd.7 weight 0.020
}
host bcpc-vm3-hdd {
id -11 # do not change unnecessarily
# weight 0.040
alg straw
hash 0 # rjenkins1
item osd.10 weight 0.020
item osd.11 weight 0.020
}
rack rack-hdd {
id -7 # do not change unnecessarily
# weight 0.119
alg straw
hash 0 # rjenkins1
item bcpc-vm1-hdd weight 0.040
item bcpc-vm2-hdd weight 0.040
item bcpc-vm3-hdd weight 0.040
}
root hdd {
id -3 # do not change unnecessarily
# weight 0.119
alg straw
hash 0 # rjenkins1
item rack-hdd weight 0.119
}

# rules
rule replicated_ruleset {
ruleset 0
type replicated
min_size 1
max_size 10
step take default
step chooseleaf firstn 0 type host
step emit
}
rule ssd {
ruleset 1
type replicated
min_size 1
max_size 10
step take ssd
step chooseleaf firstn 0 type rack
step chooseleaf firstn 0 type host
step emit
}
rule hdd {
ruleset 2
type replicated
min_size 1
max_size 10
step take hdd
step chooseleaf firstn 0 type rack
step chooseleaf firstn 0 type host
step emit
}

# end crush map
(2-2/2)