]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # begin crush map |
2 | ||
3 | # devices | |
4 | device 0 device0 class ssd | |
5 | device 1 device1 class ssd | |
6 | device 2 device2 class hdd | |
7 | ||
8 | # types | |
9 | type 0 device | |
10 | type 1 host | |
11 | type 2 rack | |
12 | type 3 root | |
13 | ||
14 | # buckets | |
15 | host host0 { | |
16 | id -1 # do not change unnecessarily | |
17 | id -6 class ssd # do not change unnecessarily | |
18 | id -11 class hdd # do not change unnecessarily | |
19 | # weight 1.000 | |
20 | alg straw | |
21 | hash 0 # rjenkins1 | |
22 | item device0 weight 1.000 | |
23 | } | |
24 | host host1 { | |
25 | id -2 # do not change unnecessarily | |
26 | id -7 class ssd # do not change unnecessarily | |
27 | id -12 class hdd # do not change unnecessarily | |
28 | # weight 1.000 | |
29 | alg straw | |
30 | hash 0 # rjenkins1 | |
31 | item device1 weight 1.000 | |
32 | } | |
33 | host host2 { | |
34 | id -5 # do not change unnecessarily | |
35 | id -8 class ssd # do not change unnecessarily | |
36 | id -13 class hdd # do not change unnecessarily | |
37 | # weight 1.000 | |
38 | alg straw | |
39 | hash 0 # rjenkins1 | |
40 | item device2 weight 1.000 | |
41 | } | |
42 | rack rack0 { | |
43 | id -3 # do not change unnecessarily | |
44 | id -9 class ssd # do not change unnecessarily | |
45 | id -14 class hdd # do not change unnecessarily | |
46 | # weight 3.000 | |
47 | alg straw | |
48 | hash 0 # rjenkins1 | |
49 | item host0 weight 1.000 | |
50 | item host1 weight 1.000 | |
51 | item host2 weight 1.000 | |
52 | } | |
53 | root root { | |
54 | id -4 # do not change unnecessarily | |
55 | id -10 class ssd # do not change unnecessarily | |
56 | id -15 class hdd # do not change unnecessarily | |
57 | # weight 4.000 | |
58 | alg straw | |
59 | hash 0 # rjenkins1 | |
60 | item rack0 weight 4.000 | |
61 | } | |
62 | ||
63 | # rules | |
64 | rule data-ssd { | |
c07f9fc5 | 65 | id 1 |
7c673cae FG |
66 | type replicated |
67 | min_size 2 | |
68 | max_size 2 | |
69 | step take root class ssd | |
70 | step chooseleaf firstn 0 type rack | |
71 | step emit | |
72 | } | |
73 | rule data-hdd { | |
c07f9fc5 | 74 | id 2 |
7c673cae FG |
75 | type replicated |
76 | min_size 2 | |
77 | max_size 2 | |
78 | step take root class hdd | |
79 | step chooseleaf firstn 0 type rack | |
80 | step emit | |
81 | } | |
82 | rule data { | |
c07f9fc5 | 83 | id 3 |
7c673cae FG |
84 | type replicated |
85 | min_size 2 | |
86 | max_size 2 | |
87 | step take root | |
88 | step chooseleaf firstn 0 type rack | |
89 | step emit | |
90 | } | |
91 | ||
92 | # end crush map |