]>
Commit | Line | Data |
---|---|---|
31f18b77 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 chooseleaf_vary_r 1 | |
7 | tunable chooseleaf_stable 1 | |
8 | tunable straw_calc_version 1 | |
9 | tunable allowed_bucket_algs 54 | |
10 | ||
11 | # devices | |
12 | device 0 osd.0 | |
13 | device 1 osd.1 | |
14 | ||
15 | # types | |
16 | type 0 osd | |
17 | type 1 host | |
18 | type 2 chassis | |
19 | type 3 rack | |
20 | type 4 row | |
21 | type 5 pdu | |
22 | type 6 pod | |
23 | type 7 room | |
24 | type 8 datacenter | |
11fdf7f2 TL |
25 | type 9 zone |
26 | type 10 region | |
27 | type 11 root | |
31f18b77 FG |
28 | |
29 | # buckets | |
30 | host HOST { | |
31 | id -2 # do not change unnecessarily | |
20effc67 | 32 | # weight 6.00000 |
31f18b77 FG |
33 | alg straw2 |
34 | hash 0 # rjenkins1 | |
20effc67 TL |
35 | item osd.0 weight 3.00000 |
36 | item osd.1 weight 3.00000 | |
31f18b77 FG |
37 | } |
38 | root default { | |
39 | id -1 # do not change unnecessarily | |
20effc67 | 40 | # weight 6.00000 |
31f18b77 FG |
41 | alg straw2 |
42 | hash 0 # rjenkins1 | |
20effc67 | 43 | item HOST weight 6.00000 |
31f18b77 FG |
44 | } |
45 | ||
46 | # rules | |
47 | rule replicated_rule { | |
c07f9fc5 | 48 | id 0 |
31f18b77 | 49 | type replicated |
31f18b77 FG |
50 | step take default |
51 | step choose firstn 0 type osd | |
52 | step emit | |
53 | } | |
54 | ||
55 | # choose_args | |
56 | choose_args 0 { | |
57 | { | |
58 | bucket_id -1 | |
59 | weight_set [ | |
20effc67 TL |
60 | [ 2.00000 ] |
61 | [ 1.00000 ] | |
31f18b77 FG |
62 | ] |
63 | ids [ -10 ] | |
64 | } | |
65 | { | |
66 | bucket_id -2 | |
67 | weight_set [ | |
20effc67 TL |
68 | [ 2.00000 0.00000 ] |
69 | [ 1.00000 0.00000 ] | |
31f18b77 FG |
70 | ] |
71 | ids [ -20 1 ] | |
72 | } | |
73 | } | |
74 | ||
75 | # end crush map |