]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/cli/crushtool/set-choose.crushmap.txt
import quincy beta 17.1.0
[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
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}
34host 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}
43host 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}
52rack 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}
61root 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
70rule 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
79rule 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
87rule 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
95rule 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
108rule 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
120rule 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