]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/cli/crushtool/multitype.before
import quincy beta 17.1.0
[ceph.git] / ceph / src / test / cli / crushtool / multitype.before
CommitLineData
7c673cae
FG
1# begin crush map
2
3# devices
4device 0 osd0
5device 1 osd1
6device 2 osd2
7device 3 osd3
8device 4 osd4
9device 5 osd5
10device 6 osd6
11device 7 osd7
12device 8 osd8
13device 9 osd9
14
15# types
16type 0 osd
17type 1 host
18type 2 cluster
19
20# buckets
21host host0 {
22 id -2 # do not change unnecessarily
20effc67 23 # weight 2.00000
7c673cae
FG
24 alg straw
25 hash 0 # rjenkins1
20effc67
TL
26 item osd0 weight 1.00000
27 item osd1 weight 1.00000
7c673cae
FG
28}
29host host1 {
30 id -3 # do not change unnecessarily
20effc67 31 # weight 2.00000
7c673cae
FG
32 alg list
33 hash 0 # rjenkins1
20effc67
TL
34 item osd3 weight 1.00000
35 item osd4 weight 1.00000
7c673cae
FG
36}
37host host2 {
38 id -4 # do not change unnecessarily
20effc67 39 # weight 2.00000
7c673cae
FG
40 alg tree
41 hash 0 # rjenkins1
20effc67
TL
42 item osd5 weight 1.00000
43 item osd6 weight 1.00000
44 item osd7 weight 1.00000
45 item osd8 weight 1.00000
46 item osd9 weight 1.00000
7c673cae
FG
47}
48cluster cluster0 {
49 id -1 # do not change unnecessarily
20effc67 50 # weight 2.00000
7c673cae
FG
51 alg straw
52 hash 0 # rjenkins1
20effc67
TL
53 item host0 weight 2.00000
54 item host1 weight 2.00000
55 item host2 weight 5.00000
7c673cae
FG
56}
57
58# rules
59rule data {
20effc67 60 id 0
7c673cae 61 type replicated
7c673cae
FG
62 step take cluster0
63 step chooseleaf firstn 0 type host
64 step emit
65}
66rule metadata {
20effc67 67 id 1
7c673cae 68 type replicated
7c673cae
FG
69 step take cluster0
70 step chooseleaf firstn 0 type host
71 step emit
72}
73rule rbd {
20effc67 74 id 2
7c673cae 75 type replicated
7c673cae
FG
76 step take cluster0
77 step chooseleaf firstn 0 type host
78 step emit
79}
80
81# end crush map