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