]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/cli/crushtool/simple.template.multitree
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / test / cli / crushtool / simple.template.multitree
1 # begin crush map
2
3 # devices
4 device 0 device0
5 device 1 osd1
6
7 # types
8 type 0 device
9 type 1 host
10 type 2 cluster
11
12 # buckets
13 host host0 {
14 # weight 1.000
15 alg straw
16 hash 0 # rjenkins1
17 item device0 weight 1.000
18 }
19 host host1 {
20 # weight 2.000
21 alg straw
22 hash 0 # rjenkins1
23 item osd1 weight 2.000
24 }
25 cluster cluster0 {
26 # weight 3.000
27 alg straw
28 hash 0 # rjenkins1
29 item host0 weight 1.000
30 item host1 weight 2.000
31 }
32
33 cluster cluster1 {
34 # weight 3.000
35 alg straw
36 hash 0 # rjenkins1
37 item host0 weight 1.000
38 item host1 weight 2.000
39 }
40
41 # rules
42 rule data {
43 ruleset 0
44 type replicated
45 min_size 1
46 max_size 10
47 step take cluster0
48 step chooseleaf firstn 0 type host
49 step emit
50 }
51 rule metadata {
52 ruleset 1
53 type replicated
54 min_size 1
55 max_size 10
56 step take cluster0
57 step chooseleaf firstn 0 type host
58 step emit
59 }
60 rule rbd {
61 ruleset 2
62 type replicated
63 min_size 1
64 max_size 10
65 step take cluster1
66 step chooseleaf firstn 0 type host
67 step emit
68 }
69
70 # end crush map