]>
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 { | |
20effc67 | 14 | # weight 1.00000 |
7c673cae FG |
15 | alg straw |
16 | hash 0 # rjenkins1 | |
20effc67 | 17 | item device0 weight 1.00000 |
7c673cae FG |
18 | } |
19 | host host1 { | |
20effc67 | 20 | # weight 2.00000 |
7c673cae FG |
21 | alg straw |
22 | hash 0 # rjenkins1 | |
20effc67 | 23 | item osd1 weight 2.00000 |
7c673cae FG |
24 | } |
25 | cluster cluster0 { | |
20effc67 | 26 | # weight 3.00000 |
7c673cae FG |
27 | alg straw |
28 | hash 0 # rjenkins1 | |
20effc67 TL |
29 | item host0 weight 1.00000 |
30 | item host1 weight 2.00000 | |
7c673cae FG |
31 | } |
32 | ||
33 | cluster cluster1 { | |
20effc67 | 34 | # weight 3.00000 |
7c673cae FG |
35 | alg straw |
36 | hash 0 # rjenkins1 | |
20effc67 TL |
37 | item host0 weight 1.00000 |
38 | item host1 weight 2.00000 | |
7c673cae FG |
39 | } |
40 | ||
41 | # rules | |
42 | rule data { | |
20effc67 | 43 | id 0 |
7c673cae | 44 | type replicated |
7c673cae FG |
45 | step take cluster0 |
46 | step chooseleaf firstn 0 type host | |
47 | step emit | |
48 | } | |
49 | rule metadata { | |
20effc67 | 50 | id 1 |
7c673cae | 51 | type replicated |
7c673cae FG |
52 | step take cluster0 |
53 | step chooseleaf firstn 0 type host | |
54 | step emit | |
55 | } | |
56 | rule rbd { | |
20effc67 | 57 | id 2 |
7c673cae | 58 | type replicated |
7c673cae FG |
59 | step take cluster1 |
60 | step chooseleaf firstn 0 type host | |
61 | step emit | |
62 | } | |
63 | ||
64 | # end crush map |