]>
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 1.00000 |
7c673cae FG |
15 | alg straw |
16 | hash 0 # rjenkins1 | |
20effc67 | 17 | item device0 weight 1.00000 |
7c673cae FG |
18 | } |
19 | cluster cluster0 { | |
20 | id -1 # do not change unnecessarily | |
20effc67 | 21 | # weight 1.00000 |
7c673cae FG |
22 | alg straw |
23 | hash 0 # rjenkins1 | |
20effc67 | 24 | item host0 weight 1.00000 |
7c673cae FG |
25 | } |
26 | ||
27 | # rules | |
28 | rule data { | |
20effc67 | 29 | id 0 |
7c673cae | 30 | type replicated |
7c673cae FG |
31 | step take cluster0 |
32 | step chooseleaf firstn 0 type host | |
33 | step emit | |
34 | } | |
35 | rule metadata { | |
20effc67 | 36 | id 1 |
7c673cae | 37 | type replicated |
7c673cae FG |
38 | step take cluster0 |
39 | step chooseleaf firstn 0 type host | |
40 | step emit | |
41 | } | |
42 | rule rbd { | |
20effc67 | 43 | id 2 |
7c673cae | 44 | type replicated |
7c673cae FG |
45 | step take cluster0 |
46 | step chooseleaf firstn 0 type host | |
47 | step emit | |
48 | } | |
49 | ||
50 | # end crush map |