]>
Commit | Line | Data |
---|---|---|
1 | # begin crush map | |
2 | ||
3 | # devices | |
4 | device 0 device0 | |
5 | device 1 device1 | |
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 | |
15 | # weight 2.000 | |
16 | alg straw | |
17 | hash 0 # rjenkins1 | |
18 | item device0 weight 1.000 | |
19 | item device1 weight 1.000 | |
20 | } | |
21 | cluster cluster0 { | |
22 | id -1 # do not change unnecessarily | |
23 | # weight 2.000 | |
24 | alg straw | |
25 | hash 0 # rjenkins1 | |
26 | item host0 weight 2.000 | |
27 | } | |
28 | ||
29 | # rules | |
30 | rule data { | |
31 | id 0 | |
32 | type replicated | |
33 | min_size 1 | |
34 | max_size 10 | |
35 | step take cluster0 | |
36 | step chooseleaf firstn 0 type host | |
37 | step emit | |
38 | } | |
39 | rule metadata { | |
40 | id 1 | |
41 | type replicated | |
42 | min_size 1 | |
43 | max_size 10 | |
44 | step take cluster0 | |
45 | step chooseleaf firstn 0 type host | |
46 | step emit | |
47 | } | |
48 | rule rbd { | |
49 | id 2 | |
50 | type replicated | |
51 | min_size 1 | |
52 | max_size 10 | |
53 | step take cluster0 | |
54 | step chooseleaf firstn 0 type host | |
55 | step emit | |
56 | } | |
57 | ||
58 | # end crush map |