]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | ||
7 | # devices | |
8 | device 0 device0 | |
9 | device 1 device1 | |
10 | device 2 device2 | |
11 | device 3 device3 | |
12 | device 4 device4 | |
13 | device 5 device5 | |
14 | device 6 device6 | |
15 | device 7 device7 | |
16 | device 8 device8 | |
17 | device 9 device9 | |
18 | device 10 device10 | |
19 | device 11 device11 | |
20 | device 12 device12 | |
21 | device 13 device13 | |
22 | device 14 device14 | |
23 | device 15 device15 | |
24 | device 16 device16 | |
25 | device 17 device17 | |
26 | device 18 device18 | |
27 | device 19 device19 | |
28 | device 20 device20 | |
29 | device 21 device21 | |
30 | device 22 device22 | |
31 | device 23 device23 | |
32 | device 24 device24 | |
33 | device 25 device25 | |
34 | device 26 device26 | |
35 | device 27 device27 | |
36 | device 28 device28 | |
37 | device 29 device29 | |
38 | device 30 device30 | |
39 | device 31 device31 | |
40 | device 32 device32 | |
41 | device 33 device33 | |
42 | device 34 device34 | |
43 | device 35 device35 | |
44 | device 36 device36 | |
45 | device 37 device37 | |
46 | device 38 device38 | |
47 | device 39 device39 | |
48 | device 40 device40 | |
49 | device 41 device41 | |
50 | device 42 device42 | |
51 | device 43 device43 | |
52 | device 44 device44 | |
53 | device 45 device45 | |
54 | device 46 device46 | |
55 | device 47 device47 | |
56 | device 48 device48 | |
57 | device 49 device49 | |
58 | device 50 device50 | |
59 | device 51 device51 | |
60 | device 52 device52 | |
61 | device 53 device53 | |
62 | device 54 device54 | |
63 | device 55 device55 | |
64 | device 56 device56 | |
65 | device 57 device57 | |
66 | device 58 device58 | |
67 | device 59 device59 | |
68 | device 60 device60 | |
69 | device 61 device61 | |
70 | device 62 device62 | |
71 | device 63 device63 | |
72 | device 64 device64 | |
73 | device 65 device65 | |
74 | device 66 device66 | |
75 | device 67 device67 | |
76 | device 68 device68 | |
77 | device 69 device69 | |
78 | device 70 device70 | |
79 | device 71 device71 | |
80 | device 72 device72 | |
81 | device 73 device73 | |
82 | device 74 device74 | |
83 | device 75 device75 | |
84 | device 76 device76 | |
85 | device 77 device77 | |
86 | device 78 device78 | |
87 | device 79 device79 | |
88 | device 80 device80 | |
89 | device 81 device81 | |
90 | device 82 device82 | |
91 | device 83 device83 | |
92 | device 84 device84 | |
93 | device 85 device85 | |
94 | device 86 device86 | |
95 | device 87 device87 | |
96 | device 88 device88 | |
97 | device 89 device89 | |
98 | device 90 device90 | |
99 | device 91 device91 | |
100 | device 92 device92 | |
101 | device 93 device93 | |
102 | device 94 device94 | |
103 | device 95 device95 | |
104 | device 96 device96 | |
105 | device 97 device97 | |
106 | device 98 device98 | |
107 | device 99 device99 | |
108 | ||
109 | # types | |
110 | type 0 device | |
111 | type 1 host | |
112 | type 2 rack | |
113 | type 3 default | |
114 | ||
115 | # buckets | |
116 | host host0 { | |
117 | id -1 # do not change unnecessarily | |
20effc67 | 118 | # weight 4.00000 |
7c673cae FG |
119 | alg straw |
120 | hash 0 # rjenkins1 | |
20effc67 TL |
121 | item device0 weight 1.00000 |
122 | item device1 weight 1.00000 | |
123 | item device2 weight 1.00000 | |
124 | item device3 weight 1.00000 | |
7c673cae FG |
125 | } |
126 | host host1 { | |
127 | id -2 # do not change unnecessarily | |
20effc67 | 128 | # weight 4.00000 |
7c673cae FG |
129 | alg straw |
130 | hash 0 # rjenkins1 | |
20effc67 TL |
131 | item device4 weight 1.00000 |
132 | item device5 weight 1.00000 | |
133 | item device6 weight 1.00000 | |
134 | item device7 weight 1.00000 | |
7c673cae FG |
135 | } |
136 | host host2 { | |
137 | id -3 # do not change unnecessarily | |
20effc67 | 138 | # weight 4.00000 |
7c673cae FG |
139 | alg straw |
140 | hash 0 # rjenkins1 | |
20effc67 TL |
141 | item device8 weight 1.00000 |
142 | item device9 weight 1.00000 | |
143 | item device10 weight 1.00000 | |
144 | item device11 weight 1.00000 | |
7c673cae FG |
145 | } |
146 | host host3 { | |
147 | id -4 # do not change unnecessarily | |
20effc67 | 148 | # weight 4.00000 |
7c673cae FG |
149 | alg straw |
150 | hash 0 # rjenkins1 | |
20effc67 TL |
151 | item device12 weight 1.00000 |
152 | item device13 weight 1.00000 | |
153 | item device14 weight 1.00000 | |
154 | item device15 weight 1.00000 | |
7c673cae FG |
155 | } |
156 | host host4 { | |
157 | id -5 # do not change unnecessarily | |
20effc67 | 158 | # weight 4.00000 |
7c673cae FG |
159 | alg straw |
160 | hash 0 # rjenkins1 | |
20effc67 TL |
161 | item device16 weight 1.00000 |
162 | item device17 weight 1.00000 | |
163 | item device18 weight 1.00000 | |
164 | item device19 weight 1.00000 | |
7c673cae FG |
165 | } |
166 | host host5 { | |
167 | id -6 # do not change unnecessarily | |
20effc67 | 168 | # weight 4.00000 |
7c673cae FG |
169 | alg straw |
170 | hash 0 # rjenkins1 | |
20effc67 TL |
171 | item device20 weight 1.00000 |
172 | item device21 weight 1.00000 | |
173 | item device22 weight 1.00000 | |
174 | item device23 weight 1.00000 | |
7c673cae FG |
175 | } |
176 | host host6 { | |
177 | id -7 # do not change unnecessarily | |
20effc67 | 178 | # weight 4.00000 |
7c673cae FG |
179 | alg straw |
180 | hash 0 # rjenkins1 | |
20effc67 TL |
181 | item device24 weight 1.00000 |
182 | item device25 weight 1.00000 | |
183 | item device26 weight 1.00000 | |
184 | item device27 weight 1.00000 | |
7c673cae FG |
185 | } |
186 | host host7 { | |
187 | id -8 # do not change unnecessarily | |
20effc67 | 188 | # weight 4.00000 |
7c673cae FG |
189 | alg straw |
190 | hash 0 # rjenkins1 | |
20effc67 TL |
191 | item device28 weight 1.00000 |
192 | item device29 weight 1.00000 | |
193 | item device30 weight 1.00000 | |
194 | item device31 weight 1.00000 | |
7c673cae FG |
195 | } |
196 | host host8 { | |
197 | id -9 # do not change unnecessarily | |
20effc67 | 198 | # weight 4.00000 |
7c673cae FG |
199 | alg straw |
200 | hash 0 # rjenkins1 | |
20effc67 TL |
201 | item device32 weight 1.00000 |
202 | item device33 weight 1.00000 | |
203 | item device34 weight 1.00000 | |
204 | item device35 weight 1.00000 | |
7c673cae FG |
205 | } |
206 | host host9 { | |
207 | id -10 # do not change unnecessarily | |
20effc67 | 208 | # weight 4.00000 |
7c673cae FG |
209 | alg straw |
210 | hash 0 # rjenkins1 | |
20effc67 TL |
211 | item device36 weight 1.00000 |
212 | item device37 weight 1.00000 | |
213 | item device38 weight 1.00000 | |
214 | item device39 weight 1.00000 | |
7c673cae FG |
215 | } |
216 | host host10 { | |
217 | id -11 # do not change unnecessarily | |
20effc67 | 218 | # weight 4.00000 |
7c673cae FG |
219 | alg straw |
220 | hash 0 # rjenkins1 | |
20effc67 TL |
221 | item device40 weight 1.00000 |
222 | item device41 weight 1.00000 | |
223 | item device42 weight 1.00000 | |
224 | item device43 weight 1.00000 | |
7c673cae FG |
225 | } |
226 | host host11 { | |
227 | id -12 # do not change unnecessarily | |
20effc67 | 228 | # weight 4.00000 |
7c673cae FG |
229 | alg straw |
230 | hash 0 # rjenkins1 | |
20effc67 TL |
231 | item device44 weight 1.00000 |
232 | item device45 weight 1.00000 | |
233 | item device46 weight 1.00000 | |
234 | item device47 weight 1.00000 | |
7c673cae FG |
235 | } |
236 | host host12 { | |
237 | id -13 # do not change unnecessarily | |
20effc67 | 238 | # weight 4.00000 |
7c673cae FG |
239 | alg straw |
240 | hash 0 # rjenkins1 | |
20effc67 TL |
241 | item device48 weight 1.00000 |
242 | item device49 weight 1.00000 | |
243 | item device50 weight 1.00000 | |
244 | item device51 weight 1.00000 | |
7c673cae FG |
245 | } |
246 | host host13 { | |
247 | id -14 # do not change unnecessarily | |
20effc67 | 248 | # weight 4.00000 |
7c673cae FG |
249 | alg straw |
250 | hash 0 # rjenkins1 | |
20effc67 TL |
251 | item device52 weight 1.00000 |
252 | item device53 weight 1.00000 | |
253 | item device54 weight 1.00000 | |
254 | item device55 weight 1.00000 | |
7c673cae FG |
255 | } |
256 | host host14 { | |
257 | id -15 # do not change unnecessarily | |
20effc67 | 258 | # weight 4.00000 |
7c673cae FG |
259 | alg straw |
260 | hash 0 # rjenkins1 | |
20effc67 TL |
261 | item device56 weight 1.00000 |
262 | item device57 weight 1.00000 | |
263 | item device58 weight 1.00000 | |
264 | item device59 weight 1.00000 | |
7c673cae FG |
265 | } |
266 | host host15 { | |
267 | id -16 # do not change unnecessarily | |
20effc67 | 268 | # weight 4.00000 |
7c673cae FG |
269 | alg straw |
270 | hash 0 # rjenkins1 | |
20effc67 TL |
271 | item device60 weight 1.00000 |
272 | item device61 weight 1.00000 | |
273 | item device62 weight 1.00000 | |
274 | item device63 weight 1.00000 | |
7c673cae FG |
275 | } |
276 | host host16 { | |
277 | id -17 # do not change unnecessarily | |
20effc67 | 278 | # weight 4.00000 |
7c673cae FG |
279 | alg straw |
280 | hash 0 # rjenkins1 | |
20effc67 TL |
281 | item device64 weight 1.00000 |
282 | item device65 weight 1.00000 | |
283 | item device66 weight 1.00000 | |
284 | item device67 weight 1.00000 | |
7c673cae FG |
285 | } |
286 | host host17 { | |
287 | id -18 # do not change unnecessarily | |
20effc67 | 288 | # weight 4.00000 |
7c673cae FG |
289 | alg straw |
290 | hash 0 # rjenkins1 | |
20effc67 TL |
291 | item device68 weight 1.00000 |
292 | item device69 weight 1.00000 | |
293 | item device70 weight 1.00000 | |
294 | item device71 weight 1.00000 | |
7c673cae FG |
295 | } |
296 | host host18 { | |
297 | id -19 # do not change unnecessarily | |
20effc67 | 298 | # weight 4.00000 |
7c673cae FG |
299 | alg straw |
300 | hash 0 # rjenkins1 | |
20effc67 TL |
301 | item device72 weight 1.00000 |
302 | item device73 weight 1.00000 | |
303 | item device74 weight 1.00000 | |
304 | item device75 weight 1.00000 | |
7c673cae FG |
305 | } |
306 | host host19 { | |
307 | id -20 # do not change unnecessarily | |
20effc67 | 308 | # weight 4.00000 |
7c673cae FG |
309 | alg straw |
310 | hash 0 # rjenkins1 | |
20effc67 TL |
311 | item device76 weight 1.00000 |
312 | item device77 weight 1.00000 | |
313 | item device78 weight 1.00000 | |
314 | item device79 weight 1.00000 | |
7c673cae FG |
315 | } |
316 | host host20 { | |
317 | id -21 # do not change unnecessarily | |
20effc67 | 318 | # weight 4.00000 |
7c673cae FG |
319 | alg straw |
320 | hash 0 # rjenkins1 | |
20effc67 TL |
321 | item device80 weight 1.00000 |
322 | item device81 weight 1.00000 | |
323 | item device82 weight 1.00000 | |
324 | item device83 weight 1.00000 | |
7c673cae FG |
325 | } |
326 | host host21 { | |
327 | id -22 # do not change unnecessarily | |
20effc67 | 328 | # weight 4.00000 |
7c673cae FG |
329 | alg straw |
330 | hash 0 # rjenkins1 | |
20effc67 TL |
331 | item device84 weight 1.00000 |
332 | item device85 weight 1.00000 | |
333 | item device86 weight 1.00000 | |
334 | item device87 weight 1.00000 | |
7c673cae FG |
335 | } |
336 | host host22 { | |
337 | id -23 # do not change unnecessarily | |
20effc67 | 338 | # weight 4.00000 |
7c673cae FG |
339 | alg straw |
340 | hash 0 # rjenkins1 | |
20effc67 TL |
341 | item device88 weight 1.00000 |
342 | item device89 weight 1.00000 | |
343 | item device90 weight 1.00000 | |
344 | item device91 weight 1.00000 | |
7c673cae FG |
345 | } |
346 | host host23 { | |
347 | id -24 # do not change unnecessarily | |
20effc67 | 348 | # weight 4.00000 |
7c673cae FG |
349 | alg straw |
350 | hash 0 # rjenkins1 | |
20effc67 TL |
351 | item device92 weight 1.00000 |
352 | item device93 weight 1.00000 | |
353 | item device94 weight 1.00000 | |
354 | item device95 weight 1.00000 | |
7c673cae FG |
355 | } |
356 | host host24 { | |
357 | id -25 # do not change unnecessarily | |
20effc67 | 358 | # weight 4.00000 |
7c673cae FG |
359 | alg straw |
360 | hash 0 # rjenkins1 | |
20effc67 TL |
361 | item device96 weight 1.00000 |
362 | item device97 weight 1.00000 | |
363 | item device98 weight 1.00000 | |
364 | item device99 weight 1.00000 | |
7c673cae FG |
365 | } |
366 | rack rack0 { | |
367 | id -26 # do not change unnecessarily | |
20effc67 | 368 | # weight 40.00000 |
7c673cae FG |
369 | alg straw |
370 | hash 0 # rjenkins1 | |
20effc67 TL |
371 | item host0 weight 4.00000 |
372 | item host1 weight 4.00000 | |
373 | item host2 weight 4.00000 | |
374 | item host3 weight 4.00000 | |
375 | item host4 weight 4.00000 | |
376 | item host5 weight 4.00000 | |
377 | item host6 weight 4.00000 | |
378 | item host7 weight 4.00000 | |
379 | item host8 weight 4.00000 | |
380 | item host9 weight 4.00000 | |
7c673cae FG |
381 | } |
382 | rack rack1 { | |
383 | id -27 # do not change unnecessarily | |
20effc67 | 384 | # weight 40.00000 |
7c673cae FG |
385 | alg straw |
386 | hash 0 # rjenkins1 | |
20effc67 TL |
387 | item host10 weight 4.00000 |
388 | item host11 weight 4.00000 | |
389 | item host12 weight 4.00000 | |
390 | item host13 weight 4.00000 | |
391 | item host14 weight 4.00000 | |
392 | item host15 weight 4.00000 | |
393 | item host16 weight 4.00000 | |
394 | item host17 weight 4.00000 | |
395 | item host18 weight 4.00000 | |
396 | item host19 weight 4.00000 | |
7c673cae FG |
397 | } |
398 | rack rack2 { | |
399 | id -28 # do not change unnecessarily | |
20effc67 | 400 | # weight 20.00000 |
7c673cae FG |
401 | alg straw |
402 | hash 0 # rjenkins1 | |
20effc67 TL |
403 | item host20 weight 4.00000 |
404 | item host21 weight 4.00000 | |
405 | item host22 weight 4.00000 | |
406 | item host23 weight 4.00000 | |
407 | item host24 weight 4.00000 | |
7c673cae FG |
408 | } |
409 | ||
410 | default root { | |
411 | id -31 # do not change unnecessarily | |
20effc67 | 412 | # weight 100.00000 |
7c673cae FG |
413 | alg straw |
414 | hash 0 # rjenkins1 | |
20effc67 TL |
415 | item rack1 weight 40.00000 |
416 | item rack1 weight 40.00000 | |
417 | item rack2 weight 20.00000 | |
7c673cae FG |
418 | } |
419 | ||
420 | # rules | |
421 | rule myrule { | |
20effc67 | 422 | id 0 |
7c673cae | 423 | type replicated |
7c673cae FG |
424 | step take root |
425 | step choose firstn 2 type rack | |
426 | step chooseleaf indep 4 type host | |
427 | step emit | |
428 | } | |
429 | ||
430 | rule myrule1 { | |
20effc67 | 431 | id 1 |
7c673cae | 432 | type replicated |
7c673cae FG |
433 | step take root |
434 | step choose firstn 2 type rack | |
435 | step chooseleaf indep 1 type host | |
436 | step emit | |
437 | } | |
438 | ||
439 | # end crush map |