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