]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/cli/crushtool/set-choose.crushmap.txt
update sources to v12.1.2
[ceph.git] / ceph / src / test / cli / crushtool / set-choose.crushmap.txt
CommitLineData
7c673cae
FG
1# begin crush map
2tunable choose_local_tries 1
3tunable choose_local_fallback_tries 2
4tunable choose_total_tries 35
5tunable chooseleaf_descend_once 1
6
7# devices
8device 0 device0
9device 1 device1
10device 2 device2
11device 3 device3
12device 4 device4
13device 5 device5
14device 6 device6
15device 7 device7
16device 8 device8
17
18# types
19type 0 device
20type 1 host
21type 2 rack
22type 3 root
23
24# buckets
25host 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}
34host 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}
43host 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}
52rack 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}
61root 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
70rule choose {
c07f9fc5 71 id 0
7c673cae
FG
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
81rule choose-two {
c07f9fc5 82 id 1
7c673cae
FG
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
91rule chooseleaf {
c07f9fc5 92 id 2
7c673cae
FG
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
101rule choose-set {
c07f9fc5 102 id 3
7c673cae
FG
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
116rule choose-set-two {
c07f9fc5 117 id 4
7c673cae
FG
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
130rule chooseleaf-set {
c07f9fc5 131 id 5
7c673cae
FG
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