]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/cli/crushtool/set-choose.crushmap.txt
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / test / cli / crushtool / set-choose.crushmap.txt
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
27 # weight 3.000
28 alg straw
29 hash 0 # rjenkins1
30 item device0 weight 1.000
31 item device1 weight 1.000
32 item device2 weight 1.000
33 }
34 host host1 {
35 id -2 # do not change unnecessarily
36 # weight 3.000
37 alg straw
38 hash 0 # rjenkins1
39 item device3 weight 1.000
40 item device4 weight 1.000
41 item device5 weight 1.000
42 }
43 host host2 {
44 id -3 # do not change unnecessarily
45 # weight 3.000
46 alg straw
47 hash 0 # rjenkins1
48 item device6 weight 1.000
49 item device7 weight 1.000
50 item device8 weight 1.000
51 }
52 rack rack0 {
53 id -4 # do not change unnecessarily
54 # weight 9.000
55 alg straw
56 hash 0 # rjenkins1
57 item host0 weight 3.000
58 item host1 weight 3.000
59 item host2 weight 3.000
60 }
61 root root0 {
62 id -5 # do not change unnecessarily
63 # weight 9.000
64 alg straw
65 hash 0 # rjenkins1
66 item rack0 weight 9.000
67 }
68
69 # rules
70 rule choose {
71 ruleset 1
72 type replicated
73 min_size 2
74 max_size 3
75 step take root0
76 step choose firstn 0 type host
77 step choose firstn 1 type device
78 step emit
79 }
80
81 rule choose-two {
82 ruleset 2
83 type replicated
84 min_size 2
85 max_size 3
86 step take root0
87 step choose firstn 0 type device
88 step emit
89 }
90
91 rule chooseleaf {
92 ruleset 3
93 type replicated
94 min_size 2
95 max_size 3
96 step take root0
97 step chooseleaf firstn 0 type host
98 step emit
99 }
100
101 rule choose-set {
102 ruleset 4
103 type replicated
104 min_size 2
105 max_size 3
106 step set_choose_tries 3
107 step set_choose_local_tries 2
108 step set_choose_local_fallback_tries 2
109 step set_chooseleaf_tries 3
110 step take root0
111 step choose firstn 0 type host
112 step choose firstn 1 type device
113 step emit
114 }
115
116 rule choose-set-two {
117 ruleset 5
118 type replicated
119 min_size 2
120 max_size 3
121 step set_choose_tries 3
122 step set_choose_local_tries 2
123 step set_choose_local_fallback_tries 2
124 step set_chooseleaf_tries 3
125 step take root0
126 step choose firstn 0 type device
127 step emit
128 }
129
130 rule chooseleaf-set {
131 ruleset 6
132 type replicated
133 min_size 2
134 max_size 3
135 step set_choose_tries 3
136 step set_choose_local_tries 2
137 step set_choose_local_fallback_tries 2
138 step set_chooseleaf_tries 3
139 step take root0
140 step chooseleaf firstn 0 type host
141 step emit
142 }
143
144 # end crush map