Project

General

Profile

crushmap.txt

Wido den Hollander, 11/08/2011 07:01 AM

Download (3.61 KB)

 
1
# begin crush map
2

    
3
# devices
4
device 0 osd.0
5
device 1 osd.1
6
device 2 osd.2
7
device 3 osd.3
8
device 4 osd.4
9
device 5 osd.5
10
device 6 osd.6
11
device 7 osd.7
12
device 8 osd.8
13
device 9 osd.9
14
device 10 osd.10
15
device 11 osd.11
16
device 12 osd.12
17
device 13 osd.13
18
device 14 osd.14
19
device 15 osd.15
20
device 16 osd.16
21
device 17 osd.17
22
device 18 osd.18
23
device 19 osd.19
24
device 20 osd.20
25
device 21 osd.21
26
device 22 osd.22
27
device 23 osd.23
28
device 24 osd.24
29
device 25 osd.25
30
device 26 osd.26
31
device 27 osd.27
32
device 28 osd.28
33
device 29 osd.29
34
device 30 osd.30
35
device 31 osd.31
36
device 32 osd.32
37
device 33 osd.33
38
device 34 osd.34
39
device 35 osd.35
40
device 36 osd.36
41
device 37 osd.37
42
device 38 osd.38
43
device 39 osd.39
44

    
45
# types
46
type 0 osd
47
type 1 host
48
type 2 rack
49
type 3 pool
50

    
51
# buckets
52
host atom0 {
53
	id -2		# do not change unnecessarily
54
	# weight 4.000
55
	alg straw
56
	hash 0	# rjenkins1
57
	item osd.0 weight 1.000
58
	item osd.1 weight 1.000
59
	item osd.2 weight 1.000
60
	item osd.3 weight 1.000
61
}
62
host atom2 {
63
	id -4		# do not change unnecessarily
64
	# weight 4.000
65
	alg straw
66
	hash 0	# rjenkins1
67
	item osd.10 weight 1.000
68
	item osd.11 weight 1.000
69
	item osd.8 weight 1.000
70
	item osd.9 weight 1.000
71
}
72
host atom3 {
73
	id -5		# do not change unnecessarily
74
	# weight 4.000
75
	alg straw
76
	hash 0	# rjenkins1
77
	item osd.12 weight 1.000
78
	item osd.13 weight 1.000
79
	item osd.14 weight 1.000
80
	item osd.15 weight 1.000
81
}
82
host atom4 {
83
	id -6		# do not change unnecessarily
84
	# weight 4.000
85
	alg straw
86
	hash 0	# rjenkins1
87
	item osd.16 weight 1.000
88
	item osd.17 weight 1.000
89
	item osd.18 weight 1.000
90
	item osd.19 weight 1.000
91
}
92
host atom5 {
93
	id -7		# do not change unnecessarily
94
	# weight 4.000
95
	alg straw
96
	hash 0	# rjenkins1
97
	item osd.20 weight 1.000
98
	item osd.21 weight 1.000
99
	item osd.22 weight 1.000
100
	item osd.23 weight 1.000
101
}
102
host atom6 {
103
	id -8		# do not change unnecessarily
104
	# weight 4.000
105
	alg straw
106
	hash 0	# rjenkins1
107
	item osd.24 weight 1.000
108
	item osd.25 weight 1.000
109
	item osd.26 weight 1.000
110
	item osd.27 weight 1.000
111
}
112
host atom7 {
113
	id -9		# do not change unnecessarily
114
	# weight 4.000
115
	alg straw
116
	hash 0	# rjenkins1
117
	item osd.28 weight 1.000
118
	item osd.29 weight 1.000
119
	item osd.30 weight 1.000
120
	item osd.31 weight 1.000
121
}
122
host atom8 {
123
	id -10		# do not change unnecessarily
124
	# weight 4.000
125
	alg straw
126
	hash 0	# rjenkins1
127
	item osd.32 weight 1.000
128
	item osd.33 weight 1.000
129
	item osd.34 weight 1.000
130
	item osd.35 weight 1.000
131
}
132
host atom9 {
133
	id -11		# do not change unnecessarily
134
	# weight 4.000
135
	alg straw
136
	hash 0	# rjenkins1
137
	item osd.36 weight 1.000
138
	item osd.37 weight 1.000
139
	item osd.38 weight 1.000
140
	item osd.39 weight 1.000
141
}
142
host atom1 {
143
	id -12		# do not change unnecessarily
144
	# weight 4.000
145
	alg straw
146
	hash 0	# rjenkins1
147
	item osd.4 weight 1.000
148
	item osd.5 weight 1.000
149
	item osd.6 weight 1.000
150
	item osd.7 weight 1.000
151
}
152
rack unknownrack {
153
	id -3		# do not change unnecessarily
154
	# weight 40.000
155
	alg straw
156
	hash 0	# rjenkins1
157
	item atom0 weight 4.000
158
	item atom2 weight 4.000
159
	item atom3 weight 4.000
160
	item atom4 weight 4.000
161
	item atom5 weight 4.000
162
	item atom6 weight 4.000
163
	item atom7 weight 4.000
164
	item atom8 weight 4.000
165
	item atom9 weight 4.000
166
	item atom1 weight 4.000
167
}
168
pool root {
169
	id -1		# do not change unnecessarily
170
	# weight 40.000
171
	alg straw
172
	hash 0	# rjenkins1
173
	item unknownrack weight 40.000
174
}
175

    
176
# rules
177
rule data {
178
	ruleset 0
179
	type replicated
180
	min_size 1
181
	max_size 10
182
	step take root
183
	step chooseleaf firstn 0 type host
184
	step emit
185
}
186
rule metadata {
187
	ruleset 1
188
	type replicated
189
	min_size 1
190
	max_size 10
191
	step take root
192
	step chooseleaf firstn 0 type host
193
	step emit
194
}
195
rule rbd {
196
	ruleset 2
197
	type replicated
198
	min_size 1
199
	max_size 10
200
	step take root
201
	step chooseleaf firstn 0 type host
202
	step emit
203
}
204

    
205
# end crush map