Project

General

Profile

map.log

CephM M, 06/19/2015 12:05 AM

Download (2.01 KB)

 
1
# begin crush map
2
tunable choose_local_tries 0
3
tunable choose_local_fallback_tries 0
4
tunable choose_total_tries 50
5
tunable chooseleaf_descend_once 1
6
tunable chooseleaf_vary_r 1
7

    
8
# devices
9
device 0 osd.0
10
device 1 osd.1
11
device 2 osd.2
12
device 3 osd.3
13
device 4 osd.4
14
device 5 osd.5
15
device 6 osd.6
16
device 7 osd.7
17

    
18
# types
19
type 0 osd
20
type 1 host
21
type 2 chassis
22
type 3 rack
23
type 4 row
24
type 5 pdu
25
type 6 pod
26
type 7 room
27
type 8 datacenter
28
type 9 region
29
type 10 root
30

    
31
# buckets
32
host stor2 {
33
        id -2           # do not change unnecessarily
34
        # weight 73.020
35
        alg straw
36
        hash 0  # rjenkins1
37
        item osd.0 weight 72.760
38
}
39
host stor4 {
40
        id -3           # do not change unnecessarily
41
        # weight 72.760
42
        alg straw
43
        hash 0  # rjenkins1
44
        item osd.1 weight 72.760
45
}
46
host stor2-ssd {
47
        id -4           # do not change unnecessarily
48
        alg straw
49
        hash 0  # rjenkins1
50
        item osd.2 weight 1.0
51
        item osd.7 weight 1.0
52
}
53
host stor4-ssd {
54
        id -5           # do not change unnecessarily
55
        alg straw
56
        hash 0  # rjenkins1
57
        item osd.3 weight 1.0
58
        item osd.4 weight 1.0
59
        item osd.5 weight 1.0
60
        item osd.6 weight 1.0
61
}
62
root default {
63
        id -10          # do not change unnecessarily
64
        # weight 145.780
65
        alg straw
66
        hash 0  # rjenkins1
67
        item stor2 weight 73.020
68
        item stor4 weight 72.760
69
}
70
root ssd {
71
        id -11
72
        alg straw
73
        hash 0
74
        item stor2-ssd weight 1.0
75
        item stor4-ssd weight 1.0
76
}
77

    
78
# rules
79
rule replicated_ruleset {
80
        ruleset 0
81
        type replicated
82
        min_size 1
83
        max_size 10
84
        step take default
85
        step choose firstn 0 type osd
86
        step emit
87
}
88
rule ssd {
89
        ruleset 1
90
        type replicated
91
        min_size 1
92
        max_size 10
93
        step take ssd
94
        step chooseleaf firstn 0 type host
95
        step emit
96
}
97

    
98
# end crush map