]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/cli/crushtool/choose-args.crush
bump version to 18.2.2-pve1
[ceph.git] / ceph / src / test / cli / crushtool / choose-args.crush
CommitLineData
7c673cae
FG
1# begin crush map
2
3# devices
4device 0 device0
5device 1 device1
6device 2 device2
7
8# types
9type 0 device
10type 1 host
11type 2 rack
12type 3 root
13
14# buckets
15host host0 {
16 id -1 # do not change unnecessarily
20effc67 17 # weight 1.00000
28e407b8 18 alg straw2
7c673cae 19 hash 0 # rjenkins1
20effc67 20 item device0 weight 1.00000
7c673cae
FG
21}
22host host1 {
23 id -2 # do not change unnecessarily
20effc67 24 # weight 1.00000
28e407b8 25 alg straw2
7c673cae 26 hash 0 # rjenkins1
20effc67 27 item device1 weight 1.00000
7c673cae
FG
28}
29host host2 {
30 id -5 # do not change unnecessarily
20effc67 31 # weight 1.00000
28e407b8 32 alg straw2
7c673cae 33 hash 0 # rjenkins1
20effc67 34 item device2 weight 1.00000
7c673cae
FG
35}
36rack rack0 {
37 id -3 # do not change unnecessarily
20effc67 38 # weight 3.00000
28e407b8 39 alg straw2
7c673cae 40 hash 0 # rjenkins1
20effc67
TL
41 item host0 weight 1.00000
42 item host1 weight 1.00000
43 item host2 weight 1.00000
7c673cae
FG
44}
45root root {
46 id -4 # do not change unnecessarily
20effc67 47 # weight 4.00000
28e407b8 48 alg straw2
7c673cae 49 hash 0 # rjenkins1
20effc67 50 item rack0 weight 4.00000
7c673cae
FG
51}
52
53# rules
54rule data {
c07f9fc5 55 id 3
7c673cae 56 type replicated
7c673cae
FG
57 step take root
58 step chooseleaf firstn 0 type rack
59 step emit
60}
61
62# choose_args
63choose_args 1 {
64}
65choose_args 2 {
66 {
67 bucket_id -3
68 ids [ -20 30 -25 ]
69 }
70}
71choose_args 3 {
72 {
73 bucket_id -3
74 weight_set [
20effc67
TL
75 [ 1.00000 2.00000 5.00000 ]
76 [ 3.00000 2.00000 5.00000 ]
7c673cae
FG
77 ]
78 ids [ -20 -30 -25 ]
79 }
80}
81choose_args 4 {
82 {
83 bucket_id -2
84 weight_set [
20effc67
TL
85 [ 1.00000 ]
86 [ 3.00000 ]
7c673cae
FG
87 ]
88 }
89}
90choose_args 5 {
91 {
92 bucket_id -1
93 ids [ -450 ]
94 }
95}
96choose_args 6 {
97 {
98 bucket_id -1
99 ids [ -450 ]
100 }
101 {
102 bucket_id -2
103 weight_set [
20effc67
TL
104 [ 1.00000 ]
105 [ 3.00000 ]
7c673cae
FG
106 ]
107 }
108 {
109 bucket_id -3
110 weight_set [
20effc67
TL
111 [ 1.00000 2.00000 5.00000 ]
112 [ 3.00000 2.00000 5.00000 ]
7c673cae
FG
113 ]
114 ids [ -20 -30 -25 ]
115 }
116}
117
118# end crush map