summaryrefslogtreecommitdiffstats
path: root/src/test/cli/crushtool/test-map-firstn-indep.txt
blob: 4534eab27b686f103eaa9a3b20bdeac904c0e31b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
# begin crush map
tunable choose_local_tries 0
tunable choose_local_fallback_tries 0
tunable choose_total_tries 50
tunable chooseleaf_descend_once 1

# devices
device 0 device0
device 1 device1
device 2 device2
device 3 device3
device 4 device4
device 5 device5
device 6 device6
device 7 device7
device 8 device8
device 9 device9
device 10 device10
device 11 device11
device 12 device12
device 13 device13
device 14 device14
device 15 device15
device 16 device16
device 17 device17
device 18 device18
device 19 device19
device 20 device20
device 21 device21
device 22 device22
device 23 device23
device 24 device24
device 25 device25
device 26 device26
device 27 device27
device 28 device28
device 29 device29
device 30 device30
device 31 device31
device 32 device32
device 33 device33
device 34 device34
device 35 device35
device 36 device36
device 37 device37
device 38 device38
device 39 device39
device 40 device40
device 41 device41
device 42 device42
device 43 device43
device 44 device44
device 45 device45
device 46 device46
device 47 device47
device 48 device48
device 49 device49
device 50 device50
device 51 device51
device 52 device52
device 53 device53
device 54 device54
device 55 device55
device 56 device56
device 57 device57
device 58 device58
device 59 device59
device 60 device60
device 61 device61
device 62 device62
device 63 device63
device 64 device64
device 65 device65
device 66 device66
device 67 device67
device 68 device68
device 69 device69
device 70 device70
device 71 device71
device 72 device72
device 73 device73
device 74 device74
device 75 device75
device 76 device76
device 77 device77
device 78 device78
device 79 device79
device 80 device80
device 81 device81
device 82 device82
device 83 device83
device 84 device84
device 85 device85
device 86 device86
device 87 device87
device 88 device88
device 89 device89
device 90 device90
device 91 device91
device 92 device92
device 93 device93
device 94 device94
device 95 device95
device 96 device96
device 97 device97
device 98 device98
device 99 device99

# types
type 0 device
type 1 host
type 2 rack
type 3 default

# buckets
host host0 {
	id -1		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device0 weight 1.000
	item device1 weight 1.000
	item device2 weight 1.000
	item device3 weight 1.000
}
host host1 {
	id -2		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device4 weight 1.000
	item device5 weight 1.000
	item device6 weight 1.000
	item device7 weight 1.000
}
host host2 {
	id -3		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device8 weight 1.000
	item device9 weight 1.000
	item device10 weight 1.000
	item device11 weight 1.000
}
host host3 {
	id -4		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device12 weight 1.000
	item device13 weight 1.000
	item device14 weight 1.000
	item device15 weight 1.000
}
host host4 {
	id -5		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device16 weight 1.000
	item device17 weight 1.000
	item device18 weight 1.000
	item device19 weight 1.000
}
host host5 {
	id -6		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device20 weight 1.000
	item device21 weight 1.000
	item device22 weight 1.000
	item device23 weight 1.000
}
host host6 {
	id -7		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device24 weight 1.000
	item device25 weight 1.000
	item device26 weight 1.000
	item device27 weight 1.000
}
host host7 {
	id -8		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device28 weight 1.000
	item device29 weight 1.000
	item device30 weight 1.000
	item device31 weight 1.000
}
host host8 {
	id -9		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device32 weight 1.000
	item device33 weight 1.000
	item device34 weight 1.000
	item device35 weight 1.000
}
host host9 {
	id -10		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device36 weight 1.000
	item device37 weight 1.000
	item device38 weight 1.000
	item device39 weight 1.000
}
host host10 {
	id -11		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device40 weight 1.000
	item device41 weight 1.000
	item device42 weight 1.000
	item device43 weight 1.000
}
host host11 {
	id -12		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device44 weight 1.000
	item device45 weight 1.000
	item device46 weight 1.000
	item device47 weight 1.000
}
host host12 {
	id -13		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device48 weight 1.000
	item device49 weight 1.000
	item device50 weight 1.000
	item device51 weight 1.000
}
host host13 {
	id -14		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device52 weight 1.000
	item device53 weight 1.000
	item device54 weight 1.000
	item device55 weight 1.000
}
host host14 {
	id -15		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device56 weight 1.000
	item device57 weight 1.000
	item device58 weight 1.000
	item device59 weight 1.000
}
host host15 {
	id -16		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device60 weight 1.000
	item device61 weight 1.000
	item device62 weight 1.000
	item device63 weight 1.000
}
host host16 {
	id -17		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device64 weight 1.000
	item device65 weight 1.000
	item device66 weight 1.000
	item device67 weight 1.000
}
host host17 {
	id -18		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device68 weight 1.000
	item device69 weight 1.000
	item device70 weight 1.000
	item device71 weight 1.000
}
host host18 {
	id -19		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device72 weight 1.000
	item device73 weight 1.000
	item device74 weight 1.000
	item device75 weight 1.000
}
host host19 {
	id -20		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device76 weight 1.000
	item device77 weight 1.000
	item device78 weight 1.000
	item device79 weight 1.000
}
host host20 {
	id -21		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device80 weight 1.000
	item device81 weight 1.000
	item device82 weight 1.000
	item device83 weight 1.000
}
host host21 {
	id -22		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device84 weight 1.000
	item device85 weight 1.000
	item device86 weight 1.000
	item device87 weight 1.000
}
host host22 {
	id -23		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device88 weight 1.000
	item device89 weight 1.000
	item device90 weight 1.000
	item device91 weight 1.000
}
host host23 {
	id -24		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device92 weight 1.000
	item device93 weight 1.000
	item device94 weight 1.000
	item device95 weight 1.000
}
host host24 {
	id -25		# do not change unnecessarily
	# weight 4.000
	alg straw
	hash 0	# rjenkins1
	item device96 weight 1.000
	item device97 weight 1.000
	item device98 weight 1.000
	item device99 weight 1.000
}
rack rack0 {
	id -26		# do not change unnecessarily
	# weight 40.000
	alg straw
	hash 0	# rjenkins1
	item host0 weight 4.000
	item host1 weight 4.000
	item host2 weight 4.000
	item host3 weight 4.000
	item host4 weight 4.000
	item host5 weight 4.000
	item host6 weight 4.000
	item host7 weight 4.000
	item host8 weight 4.000
	item host9 weight 4.000
}
rack rack1 {
	id -27		# do not change unnecessarily
	# weight 40.000
	alg straw
	hash 0	# rjenkins1
	item host10 weight 4.000
	item host11 weight 4.000
	item host12 weight 4.000
	item host13 weight 4.000
	item host14 weight 4.000
	item host15 weight 4.000
	item host16 weight 4.000
	item host17 weight 4.000
	item host18 weight 4.000
	item host19 weight 4.000
}
rack rack2 {
	id -28		# do not change unnecessarily
	# weight 20.000
	alg straw
	hash 0	# rjenkins1
	item host20 weight 4.000
	item host21 weight 4.000
	item host22 weight 4.000
	item host23 weight 4.000
	item host24 weight 4.000
}

default root {
	id -31		# do not change unnecessarily
	# weight 100.000
	alg straw
	hash 0	# rjenkins1
	item rack1 weight 40.000
	item rack1 weight 40.000
	item rack2 weight 20.000
}

# rules
rule myrule {
	ruleset 0
	type replicated
	min_size 1
	max_size 10
	step take root
	step choose firstn 2 type rack
	step chooseleaf indep 4 type host
	step emit
}

rule myrule1 {
	ruleset 1
	type replicated
	min_size 1
	max_size 10
	step take root
	step choose firstn 2 type rack
	step chooseleaf indep 1 type host
	step emit
}

# end crush map