]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # begin crush map |
2 | ||
3 | # devices | |
4 | device 0 device0 | |
5 | device 1 device1 | |
6 | device 2 device2 | |
7 | device 3 device3 | |
8 | device 4 device4 | |
9 | device 5 device5 | |
10 | device 6 device6 | |
11 | device 7 device7 | |
12 | ||
13 | # types | |
14 | type 0 device | |
15 | type 1 host | |
16 | type 2 cluster | |
17 | ||
18 | # buckets | |
19 | host host0 { | |
20 | id -2 # do not change unnecessarily | |
20effc67 | 21 | # weight 8.00000 |
7c673cae FG |
22 | alg tree # do not change pos for existing items unnecessarily |
23 | hash 0 # rjenkins1 | |
20effc67 TL |
24 | item device0 weight 1.00000 pos 0 |
25 | item device1 weight 1.00000 pos 1 | |
26 | item device2 weight 1.00000 pos 2 | |
27 | item device3 weight 1.00000 pos 3 | |
28 | item device4 weight 1.00000 pos 4 | |
29 | item device5 weight 1.00000 pos 5 | |
30 | item device6 weight 1.00000 pos 6 | |
31 | item device7 weight 1.00000 pos 7 | |
7c673cae FG |
32 | } |
33 | cluster cluster0 { | |
34 | id -1 # do not change unnecessarily | |
20effc67 | 35 | # weight 8.00000 |
7c673cae FG |
36 | alg tree # do not change pos for existing items unnecessarily |
37 | hash 0 # rjenkins1 | |
20effc67 | 38 | item host0 weight 8.00000 pos 0 |
7c673cae FG |
39 | } |
40 | ||
41 | # rules | |
42 | rule data { | |
c07f9fc5 | 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 { | |
c07f9fc5 | 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 { | |
c07f9fc5 | 57 | id 2 |
7c673cae | 58 | type replicated |
7c673cae FG |
59 | step take cluster0 |
60 | step chooseleaf firstn 0 type host | |
61 | step emit | |
62 | } | |
63 | ||
64 | # end crush map |