]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/cli/crushtool/test-map-firstn-indep.txt
import quincy beta 17.1.0
[ceph.git] / ceph / src / test / cli / crushtool / test-map-firstn-indep.txt
CommitLineData
7c673cae
FG
1# begin crush map
2tunable choose_local_tries 0
3tunable choose_local_fallback_tries 0
4tunable choose_total_tries 50
5tunable chooseleaf_descend_once 1
6
7# devices
8device 0 device0
9device 1 device1
10device 2 device2
11device 3 device3
12device 4 device4
13device 5 device5
14device 6 device6
15device 7 device7
16device 8 device8
17device 9 device9
18device 10 device10
19device 11 device11
20device 12 device12
21device 13 device13
22device 14 device14
23device 15 device15
24device 16 device16
25device 17 device17
26device 18 device18
27device 19 device19
28device 20 device20
29device 21 device21
30device 22 device22
31device 23 device23
32device 24 device24
33device 25 device25
34device 26 device26
35device 27 device27
36device 28 device28
37device 29 device29
38device 30 device30
39device 31 device31
40device 32 device32
41device 33 device33
42device 34 device34
43device 35 device35
44device 36 device36
45device 37 device37
46device 38 device38
47device 39 device39
48device 40 device40
49device 41 device41
50device 42 device42
51device 43 device43
52device 44 device44
53device 45 device45
54device 46 device46
55device 47 device47
56device 48 device48
57device 49 device49
58device 50 device50
59device 51 device51
60device 52 device52
61device 53 device53
62device 54 device54
63device 55 device55
64device 56 device56
65device 57 device57
66device 58 device58
67device 59 device59
68device 60 device60
69device 61 device61
70device 62 device62
71device 63 device63
72device 64 device64
73device 65 device65
74device 66 device66
75device 67 device67
76device 68 device68
77device 69 device69
78device 70 device70
79device 71 device71
80device 72 device72
81device 73 device73
82device 74 device74
83device 75 device75
84device 76 device76
85device 77 device77
86device 78 device78
87device 79 device79
88device 80 device80
89device 81 device81
90device 82 device82
91device 83 device83
92device 84 device84
93device 85 device85
94device 86 device86
95device 87 device87
96device 88 device88
97device 89 device89
98device 90 device90
99device 91 device91
100device 92 device92
101device 93 device93
102device 94 device94
103device 95 device95
104device 96 device96
105device 97 device97
106device 98 device98
107device 99 device99
108
109# types
110type 0 device
111type 1 host
112type 2 rack
113type 3 default
114
115# buckets
116host 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}
126host 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}
136host 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}
146host 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}
156host 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}
166host 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}
176host 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}
186host 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}
196host 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}
206host 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}
216host 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}
226host 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}
236host 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}
246host 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}
256host 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}
266host 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}
276host 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}
286host 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}
296host 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}
306host 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}
316host 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}
326host 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}
336host 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}
346host 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}
356host 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}
366rack 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}
382rack 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}
398rack 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
410default 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
421rule 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
430rule 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