Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / cli / crushtool / test-map-firstn-indep.txt
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
118         # weight 4.000
119         alg straw
120         hash 0  # rjenkins1
121         item device0 weight 1.000
122         item device1 weight 1.000
123         item device2 weight 1.000
124         item device3 weight 1.000
125 }
126 host host1 {
127         id -2           # do not change unnecessarily
128         # weight 4.000
129         alg straw
130         hash 0  # rjenkins1
131         item device4 weight 1.000
132         item device5 weight 1.000
133         item device6 weight 1.000
134         item device7 weight 1.000
135 }
136 host host2 {
137         id -3           # do not change unnecessarily
138         # weight 4.000
139         alg straw
140         hash 0  # rjenkins1
141         item device8 weight 1.000
142         item device9 weight 1.000
143         item device10 weight 1.000
144         item device11 weight 1.000
145 }
146 host host3 {
147         id -4           # do not change unnecessarily
148         # weight 4.000
149         alg straw
150         hash 0  # rjenkins1
151         item device12 weight 1.000
152         item device13 weight 1.000
153         item device14 weight 1.000
154         item device15 weight 1.000
155 }
156 host host4 {
157         id -5           # do not change unnecessarily
158         # weight 4.000
159         alg straw
160         hash 0  # rjenkins1
161         item device16 weight 1.000
162         item device17 weight 1.000
163         item device18 weight 1.000
164         item device19 weight 1.000
165 }
166 host host5 {
167         id -6           # do not change unnecessarily
168         # weight 4.000
169         alg straw
170         hash 0  # rjenkins1
171         item device20 weight 1.000
172         item device21 weight 1.000
173         item device22 weight 1.000
174         item device23 weight 1.000
175 }
176 host host6 {
177         id -7           # do not change unnecessarily
178         # weight 4.000
179         alg straw
180         hash 0  # rjenkins1
181         item device24 weight 1.000
182         item device25 weight 1.000
183         item device26 weight 1.000
184         item device27 weight 1.000
185 }
186 host host7 {
187         id -8           # do not change unnecessarily
188         # weight 4.000
189         alg straw
190         hash 0  # rjenkins1
191         item device28 weight 1.000
192         item device29 weight 1.000
193         item device30 weight 1.000
194         item device31 weight 1.000
195 }
196 host host8 {
197         id -9           # do not change unnecessarily
198         # weight 4.000
199         alg straw
200         hash 0  # rjenkins1
201         item device32 weight 1.000
202         item device33 weight 1.000
203         item device34 weight 1.000
204         item device35 weight 1.000
205 }
206 host host9 {
207         id -10          # do not change unnecessarily
208         # weight 4.000
209         alg straw
210         hash 0  # rjenkins1
211         item device36 weight 1.000
212         item device37 weight 1.000
213         item device38 weight 1.000
214         item device39 weight 1.000
215 }
216 host host10 {
217         id -11          # do not change unnecessarily
218         # weight 4.000
219         alg straw
220         hash 0  # rjenkins1
221         item device40 weight 1.000
222         item device41 weight 1.000
223         item device42 weight 1.000
224         item device43 weight 1.000
225 }
226 host host11 {
227         id -12          # do not change unnecessarily
228         # weight 4.000
229         alg straw
230         hash 0  # rjenkins1
231         item device44 weight 1.000
232         item device45 weight 1.000
233         item device46 weight 1.000
234         item device47 weight 1.000
235 }
236 host host12 {
237         id -13          # do not change unnecessarily
238         # weight 4.000
239         alg straw
240         hash 0  # rjenkins1
241         item device48 weight 1.000
242         item device49 weight 1.000
243         item device50 weight 1.000
244         item device51 weight 1.000
245 }
246 host host13 {
247         id -14          # do not change unnecessarily
248         # weight 4.000
249         alg straw
250         hash 0  # rjenkins1
251         item device52 weight 1.000
252         item device53 weight 1.000
253         item device54 weight 1.000
254         item device55 weight 1.000
255 }
256 host host14 {
257         id -15          # do not change unnecessarily
258         # weight 4.000
259         alg straw
260         hash 0  # rjenkins1
261         item device56 weight 1.000
262         item device57 weight 1.000
263         item device58 weight 1.000
264         item device59 weight 1.000
265 }
266 host host15 {
267         id -16          # do not change unnecessarily
268         # weight 4.000
269         alg straw
270         hash 0  # rjenkins1
271         item device60 weight 1.000
272         item device61 weight 1.000
273         item device62 weight 1.000
274         item device63 weight 1.000
275 }
276 host host16 {
277         id -17          # do not change unnecessarily
278         # weight 4.000
279         alg straw
280         hash 0  # rjenkins1
281         item device64 weight 1.000
282         item device65 weight 1.000
283         item device66 weight 1.000
284         item device67 weight 1.000
285 }
286 host host17 {
287         id -18          # do not change unnecessarily
288         # weight 4.000
289         alg straw
290         hash 0  # rjenkins1
291         item device68 weight 1.000
292         item device69 weight 1.000
293         item device70 weight 1.000
294         item device71 weight 1.000
295 }
296 host host18 {
297         id -19          # do not change unnecessarily
298         # weight 4.000
299         alg straw
300         hash 0  # rjenkins1
301         item device72 weight 1.000
302         item device73 weight 1.000
303         item device74 weight 1.000
304         item device75 weight 1.000
305 }
306 host host19 {
307         id -20          # do not change unnecessarily
308         # weight 4.000
309         alg straw
310         hash 0  # rjenkins1
311         item device76 weight 1.000
312         item device77 weight 1.000
313         item device78 weight 1.000
314         item device79 weight 1.000
315 }
316 host host20 {
317         id -21          # do not change unnecessarily
318         # weight 4.000
319         alg straw
320         hash 0  # rjenkins1
321         item device80 weight 1.000
322         item device81 weight 1.000
323         item device82 weight 1.000
324         item device83 weight 1.000
325 }
326 host host21 {
327         id -22          # do not change unnecessarily
328         # weight 4.000
329         alg straw
330         hash 0  # rjenkins1
331         item device84 weight 1.000
332         item device85 weight 1.000
333         item device86 weight 1.000
334         item device87 weight 1.000
335 }
336 host host22 {
337         id -23          # do not change unnecessarily
338         # weight 4.000
339         alg straw
340         hash 0  # rjenkins1
341         item device88 weight 1.000
342         item device89 weight 1.000
343         item device90 weight 1.000
344         item device91 weight 1.000
345 }
346 host host23 {
347         id -24          # do not change unnecessarily
348         # weight 4.000
349         alg straw
350         hash 0  # rjenkins1
351         item device92 weight 1.000
352         item device93 weight 1.000
353         item device94 weight 1.000
354         item device95 weight 1.000
355 }
356 host host24 {
357         id -25          # do not change unnecessarily
358         # weight 4.000
359         alg straw
360         hash 0  # rjenkins1
361         item device96 weight 1.000
362         item device97 weight 1.000
363         item device98 weight 1.000
364         item device99 weight 1.000
365 }
366 rack rack0 {
367         id -26          # do not change unnecessarily
368         # weight 40.000
369         alg straw
370         hash 0  # rjenkins1
371         item host0 weight 4.000
372         item host1 weight 4.000
373         item host2 weight 4.000
374         item host3 weight 4.000
375         item host4 weight 4.000
376         item host5 weight 4.000
377         item host6 weight 4.000
378         item host7 weight 4.000
379         item host8 weight 4.000
380         item host9 weight 4.000
381 }
382 rack rack1 {
383         id -27          # do not change unnecessarily
384         # weight 40.000
385         alg straw
386         hash 0  # rjenkins1
387         item host10 weight 4.000
388         item host11 weight 4.000
389         item host12 weight 4.000
390         item host13 weight 4.000
391         item host14 weight 4.000
392         item host15 weight 4.000
393         item host16 weight 4.000
394         item host17 weight 4.000
395         item host18 weight 4.000
396         item host19 weight 4.000
397 }
398 rack rack2 {
399         id -28          # do not change unnecessarily
400         # weight 20.000
401         alg straw
402         hash 0  # rjenkins1
403         item host20 weight 4.000
404         item host21 weight 4.000
405         item host22 weight 4.000
406         item host23 weight 4.000
407         item host24 weight 4.000
408 }
409
410 default root {
411         id -31          # do not change unnecessarily
412         # weight 100.000
413         alg straw
414         hash 0  # rjenkins1
415         item rack1 weight 40.000
416         item rack1 weight 40.000
417         item rack2 weight 20.000
418 }
419
420 # rules
421 rule myrule {
422         ruleset 0
423         type replicated
424         min_size 1
425         max_size 10
426         step take root
427         step choose firstn 2 type rack
428         step chooseleaf indep 4 type host
429         step emit
430 }
431
432 rule myrule1 {
433         ruleset 1
434         type replicated
435         min_size 1
436         max_size 10
437         step take root
438         step choose firstn 2 type rack
439         step chooseleaf indep 1 type host
440         step emit
441 }
442
443 # end crush map