]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # begin crush map |
2 | tunable choose_local_tries 0 | |
3 | tunable choose_local_fallback_tries 0 | |
4 | tunable choose_total_tries 50 | |
5 | tunable chooseleaf_descend_once 1 | |
6 | tunable straw_calc_version 1 | |
7 | ||
8 | # devices | |
9 | device 0 device0 | |
10 | ||
11 | # types | |
12 | type 0 device | |
13 | type 1 host | |
14 | type 2 default | |
15 | ||
16 | # buckets | |
17 | host host0 { | |
18 | id -1 # do not change unnecessarily | |
19 | # weight 1.000 | |
20 | alg straw2 | |
21 | hash 0 # rjenkins1 | |
22 | item device0 weight 1.000 | |
23 | } | |
24 | default default { | |
25 | id -2 # do not change unnecessarily | |
26 | # weight 1.000 | |
27 | alg straw2 | |
28 | hash 0 # rjenkins1 | |
29 | item host0 weight 1.000 | |
30 | } | |
31 | ||
32 | # rules | |
33 | rule replicated_ruleset { | |
c07f9fc5 | 34 | id 0 |
7c673cae FG |
35 | type replicated |
36 | min_size 1 | |
37 | max_size 10 | |
38 | step take default | |
39 | step chooseleaf firstn 0 type host | |
40 | step emit | |
41 | } | |
42 | ||
43 | # end crush map |