]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # begin crush map |
2 | ||
3 | # devices | |
4 | device 0 device0 | |
5 | device 1 osd1 | |
6 | ||
7 | # types | |
8 | type 0 device | |
9 | type 1 host | |
10 | type 2 cluster | |
11 | ||
12 | # buckets | |
13 | host host0 { | |
14 | id -2 # do not change unnecessarily | |
20effc67 | 15 | # weight 1.00000 |
7c673cae FG |
16 | alg straw |
17 | hash 0 # rjenkins1 | |
20effc67 | 18 | item device0 weight 1.00000 |
7c673cae FG |
19 | } |
20 | host host1 { | |
21 | id -3 # do not change unnecessarily | |
20effc67 | 22 | # weight 2.00000 |
7c673cae FG |
23 | alg straw |
24 | hash 0 # rjenkins1 | |
20effc67 | 25 | item osd1 weight 2.00000 |
7c673cae FG |
26 | } |
27 | cluster cluster0 { | |
28 | id -1 # do not change unnecessarily | |
20effc67 | 29 | # weight 3.00000 |
7c673cae FG |
30 | alg straw |
31 | hash 0 # rjenkins1 | |
20effc67 TL |
32 | item host0 weight 1.00000 |
33 | item host1 weight 2.00000 | |
7c673cae FG |
34 | } |
35 | ||
36 | # rules | |
37 | rule data { | |
c07f9fc5 | 38 | id 0 |
7c673cae | 39 | type replicated |
7c673cae FG |
40 | step take cluster0 |
41 | step chooseleaf firstn 0 type host | |
42 | step emit | |
43 | } | |
44 | rule metadata { | |
c07f9fc5 | 45 | id 1 |
7c673cae | 46 | type replicated |
7c673cae FG |
47 | step take cluster0 |
48 | step chooseleaf firstn 0 type host | |
49 | step emit | |
50 | } | |
51 | rule rbd { | |
c07f9fc5 | 52 | id 2 |
7c673cae | 53 | type replicated |
7c673cae FG |
54 | step take cluster0 |
55 | step chooseleaf firstn 0 type host | |
56 | step emit | |
57 | } | |
58 | ||
59 | # end crush map |