]> git.proxmox.com Git - ceph.git/blob - 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
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.00000
28 alg straw
29 hash 0 # rjenkins1
30 item device0 weight 1.00000
31 item device1 weight 1.00000
32 item device2 weight 1.00000
33 }
34 host host1 {
35 id -2 # do not change unnecessarily
36 # weight 3.00000
37 alg straw
38 hash 0 # rjenkins1
39 item device3 weight 1.00000
40 item device4 weight 1.00000
41 item device5 weight 1.00000
42 }
43 host host2 {
44 id -3 # do not change unnecessarily
45 # weight 3.00000
46 alg straw
47 hash 0 # rjenkins1
48 item device6 weight 1.00000
49 item device7 weight 1.00000
50 item device8 weight 1.00000
51 }
52 rack rack0 {
53 id -4 # do not change unnecessarily
54 # weight 9.00000
55 alg straw
56 hash 0 # rjenkins1
57 item host0 weight 3.00000
58 item host1 weight 3.00000
59 item host2 weight 3.00000
60 }
61 root root0 {
62 id -5 # do not change unnecessarily
63 # weight 9.00000
64 alg straw
65 hash 0 # rjenkins1
66 item rack0 weight 9.00000
67 }
68
69 # rules
70 rule choose {
71 id 0
72 type replicated
73 step take root0
74 step choose firstn 0 type host
75 step choose firstn 1 type device
76 step emit
77 }
78
79 rule choose-two {
80 id 1
81 type replicated
82 step take root0
83 step choose firstn 0 type device
84 step emit
85 }
86
87 rule chooseleaf {
88 id 2
89 type replicated
90 step take root0
91 step chooseleaf firstn 0 type host
92 step emit
93 }
94
95 rule choose-set {
96 id 3
97 type replicated
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
108 rule choose-set-two {
109 id 4
110 type replicated
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
120 rule chooseleaf-set {
121 id 5
122 type replicated
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