Project

General

Profile

Bug #10241 » crushmap.txt

Mark Nelson, 12/03/2014 09:02 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

# 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
host magna004 {
id -2 # do not change unnecessarily
# weight 3.000
alg straw
hash 0 # rjenkins1
item osd.0 weight 1.000
item osd.1 weight 1.000
item osd.2 weight 1.000
}
host magna007 {
id -4 # do not change unnecessarily
# weight 3.000
alg straw
hash 0 # rjenkins1
item osd.3 weight 1.000
item osd.4 weight 1.000
item osd.5 weight 1.000
}
host magna012 {
id -5 # do not change unnecessarily
# weight 3.000
alg straw
hash 0 # rjenkins1
item osd.6 weight 1.000
item osd.7 weight 1.000
item osd.8 weight 1.000
}
host magna031 {
id -6 # do not change unnecessarily
# weight 3.000
alg straw
hash 0 # rjenkins1
item osd.9 weight 1.000
item osd.10 weight 1.000
item osd.11 weight 1.000
}
rack localrack {
id -3 # do not change unnecessarily
# weight 12.000
alg straw
hash 0 # rjenkins1
item magna004 weight 3.000
item magna007 weight 3.000
item magna012 weight 3.000
item magna031 weight 3.000
}
root default {
id -1 # do not change unnecessarily
# weight 12.000
alg straw
hash 0 # rjenkins1
item localrack weight 12.000
}

# rules
rule replicated_ruleset {
ruleset 0
type replicated
min_size 1
max_size 10
step take default
step choose firstn 0 type osd
step emit
}
rule rados-bench-magna003-0 {
ruleset 1
type erasure
min_size 3
max_size 20
step set_chooseleaf_tries 5
step take default
step choose indep 0 type osd
step emit
}
rule rados-bench-magna003-1 {
ruleset 2
type erasure
min_size 3
max_size 20
step set_chooseleaf_tries 5
step take default
step choose indep 0 type osd
step emit
}
rule rados-bench-magna003-2 {
ruleset 3
type erasure
min_size 3
max_size 20
step set_chooseleaf_tries 5
step take default
step choose indep 0 type osd
step emit
}
rule rados-bench-magna003-3 {
ruleset 4
type erasure
min_size 3
max_size 20
step set_chooseleaf_tries 5
step take default
step choose indep 0 type osd
step emit
}

# end crush map
(3-3/3)