Code Review
/
stor4nfv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
initial code repo
[stor4nfv.git]
/
src
/
ceph
/
src
/
crush
/
old_sample.txt
1
2
# first define our types
3
<types>
4
<type osd>
5
type_id = 0
6
</type>
7
<type cab>
8
type_id = 2
9
</type>
10
<type row>
11
type_id = 3
12
</type>
13
<type pool>
14
type_id = 10
15
</type>
16
</types>
17
18
# hierarchy
19
<devices>
20
<osd osd001>
21
id 1
22
weight 500
23
</osd>
24
<osd osd002>
25
id 2
26
weight 500
27
</osd>
28
<osd osd003>
29
id 3
30
weight 500
31
</osd>
32
<osd osd004>
33
id 4
34
weight 500
35
</osd>
36
<osd osd005>
37
id 5
38
weight 500
39
</osd>
40
</devices>
41
42
<buckets>
43
<cab cab-d2>
44
alg straw
45
id -12
46
<item osd001/>
47
<item osd002/>
48
<item osd003/>
49
<item osd004>
50
weight 600
51
</item>
52
</cab>
53
54
# <pool newlayout>
55
# <item satapool>
56
# weight 1.0
57
# </item>
58
# <item fcpool>
59
# weight 3.0
60
# </item>
61
# </pool>
62
</buckets>
63
64
<devices>
65
<osd osd006>
66
id 5
67
weight 500
68
</osd>
69
</devices>
70
71
# rules
72
<rules>
73
<rule normal>
74
pool 0
75
type replicated
76
min_size 1
77
mix_size 4
78
step take root
79
step choose_indep 0 osd
80
step emit
81
</rule>
82
</rules>