]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # begin crush map |
2 | tunable choose_local_tries 1 | |
3 | tunable choose_local_fallback_tries 2 | |
4 | tunable choose_total_tries 35 | |
5 | tunable chooseleaf_descend_once 1 | |
6 | ||
7 | # devices | |
8 | device 0 device0 | |
9 | device 1 device1 | |
10 | device 2 device2 | |
11 | device 3 device3 | |
12 | device 4 device4 | |
13 | device 5 device5 | |
14 | device 6 device6 | |
15 | device 7 device7 | |
16 | device 8 device8 | |
17 | ||
18 | # types | |
19 | type 0 device | |
20 | type 1 host | |
21 | type 2 rack | |
22 | type 3 root | |
23 | ||
24 | # buckets | |
25 | host host0 { | |
26 | id -1 # do not change unnecessarily | |
20effc67 | 27 | # weight 3.00000 |
7c673cae FG |
28 | alg straw |
29 | hash 0 # rjenkins1 | |
20effc67 TL |
30 | item device0 weight 1.00000 |
31 | item device1 weight 1.00000 | |
32 | item device2 weight 1.00000 | |
7c673cae FG |
33 | } |
34 | host host1 { | |
35 | id -2 # do not change unnecessarily | |
20effc67 | 36 | # weight 3.00000 |
7c673cae FG |
37 | alg straw |
38 | hash 0 # rjenkins1 | |
20effc67 TL |
39 | item device3 weight 1.00000 |
40 | item device4 weight 1.00000 | |
41 | item device5 weight 1.00000 | |
7c673cae FG |
42 | } |
43 | host host2 { | |
44 | id -3 # do not change unnecessarily | |
20effc67 | 45 | # weight 3.00000 |
7c673cae FG |
46 | alg straw |
47 | hash 0 # rjenkins1 | |
20effc67 TL |
48 | item device6 weight 1.00000 |
49 | item device7 weight 1.00000 | |
50 | item device8 weight 1.00000 | |
7c673cae FG |
51 | } |
52 | rack rack0 { | |
53 | id -4 # do not change unnecessarily | |
20effc67 | 54 | # weight 9.00000 |
7c673cae FG |
55 | alg straw |
56 | hash 0 # rjenkins1 | |
20effc67 TL |
57 | item host0 weight 3.00000 |
58 | item host1 weight 3.00000 | |
59 | item host2 weight 3.00000 | |
7c673cae FG |
60 | } |
61 | root root0 { | |
62 | id -5 # do not change unnecessarily | |
20effc67 | 63 | # weight 9.00000 |
7c673cae FG |
64 | alg straw |
65 | hash 0 # rjenkins1 | |
20effc67 | 66 | item rack0 weight 9.00000 |
7c673cae FG |
67 | } |
68 | ||
69 | # rules | |
70 | rule choose { | |
c07f9fc5 | 71 | id 0 |
7c673cae | 72 | type replicated |
7c673cae FG |
73 | step take root0 |
74 | step choose firstn 0 type host | |
75 | step choose firstn 1 type device | |
76 | step emit | |
77 | } | |
78 | ||
79 | rule choose-two { | |
c07f9fc5 | 80 | id 1 |
7c673cae | 81 | type replicated |
7c673cae FG |
82 | step take root0 |
83 | step choose firstn 0 type device | |
84 | step emit | |
85 | } | |
86 | ||
87 | rule chooseleaf { | |
c07f9fc5 | 88 | id 2 |
7c673cae | 89 | type replicated |
7c673cae FG |
90 | step take root0 |
91 | step chooseleaf firstn 0 type host | |
92 | step emit | |
93 | } | |
94 | ||
95 | rule choose-set { | |
c07f9fc5 | 96 | id 3 |
7c673cae | 97 | type replicated |
7c673cae FG |
98 | step set_choose_tries 3 |
99 | step set_choose_local_tries 2 | |
100 | step set_choose_local_fallback_tries 2 | |
101 | step set_chooseleaf_tries 3 | |
102 | step take root0 | |
103 | step choose firstn 0 type host | |
104 | step choose firstn 1 type device | |
105 | step emit | |
106 | } | |
107 | ||
108 | rule choose-set-two { | |
c07f9fc5 | 109 | id 4 |
7c673cae | 110 | type replicated |
7c673cae FG |
111 | step set_choose_tries 3 |
112 | step set_choose_local_tries 2 | |
113 | step set_choose_local_fallback_tries 2 | |
114 | step set_chooseleaf_tries 3 | |
115 | step take root0 | |
116 | step choose firstn 0 type device | |
117 | step emit | |
118 | } | |
119 | ||
120 | rule chooseleaf-set { | |
c07f9fc5 | 121 | id 5 |
7c673cae | 122 | type replicated |
7c673cae FG |
123 | step set_choose_tries 3 |
124 | step set_choose_local_tries 2 | |
125 | step set_choose_local_fallback_tries 2 | |
126 | step set_chooseleaf_tries 3 | |
127 | step take root0 | |
128 | step chooseleaf firstn 0 type host | |
129 | step emit | |
130 | } | |
131 | ||
132 | # end crush map |