]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/cli/crushtool/multitype.after
update sources to v12.1.2
[ceph.git] / ceph / src / test / cli / crushtool / multitype.after
1 # begin crush map
2
3 # devices
4 device 0 osd0
5 device 1 osd1
6 device 2 osd2
7 device 3 osd3
8 device 4 osd4
9 device 5 osd5
10 device 6 osd6
11 device 7 osd7
12 device 8 osd8
13 device 9 osd9
14
15 # types
16 type 0 osd
17 type 1 host
18 type 2 cluster
19
20 # buckets
21 host host0 {
22 id -2 # do not change unnecessarily
23 # weight 3.000
24 alg straw
25 hash 0 # rjenkins1
26 item osd0 weight 2.000
27 item osd1 weight 1.000
28 }
29 host host1 {
30 id -3 # do not change unnecessarily
31 # weight 3.000
32 alg list # add new items at the end; do not change order unnecessarily
33 hash 0 # rjenkins1
34 item osd3 weight 2.000
35 item osd4 weight 1.000
36 }
37 host host2 {
38 id -4 # do not change unnecessarily
39 # weight 5.500
40 alg tree # do not change pos for existing items unnecessarily
41 hash 0 # rjenkins1
42 item osd5 weight 1.000 pos 0
43 item osd6 weight 2.000 pos 1
44 item osd7 weight 0.500 pos 2
45 item osd8 weight 1.000 pos 3
46 item osd9 weight 1.000 pos 4
47 }
48 cluster cluster0 {
49 id -1 # do not change unnecessarily
50 # weight 11.500
51 alg straw
52 hash 0 # rjenkins1
53 item host0 weight 3.000
54 item host1 weight 3.000
55 item host2 weight 5.500
56 }
57
58 # rules
59 rule data {
60 id 0
61 type replicated
62 min_size 1
63 max_size 10
64 step take cluster0
65 step chooseleaf firstn 0 type host
66 step emit
67 }
68 rule metadata {
69 id 1
70 type replicated
71 min_size 1
72 max_size 10
73 step take cluster0
74 step chooseleaf firstn 0 type host
75 step emit
76 }
77 rule rbd {
78 id 2
79 type replicated
80 min_size 1
81 max_size 10
82 step take cluster0
83 step chooseleaf firstn 0 type host
84 step emit
85 }
86
87 # end crush map