Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / cli / crushtool / simple.template.multitree.reweighted
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         id -1           # do not change unnecessarily
15         # weight 1.000
16         alg straw
17         hash 0  # rjenkins1
18         item device0 weight 1.000
19 }
20 host host1 {
21         id -2           # do not change unnecessarily
22         # weight 2.500
23         alg straw
24         hash 0  # rjenkins1
25         item osd1 weight 2.500
26 }
27 cluster cluster0 {
28         id -3           # do not change unnecessarily
29         # weight 3.500
30         alg straw
31         hash 0  # rjenkins1
32         item host0 weight 1.000
33         item host1 weight 2.500
34 }
35 cluster cluster1 {
36         id -4           # do not change unnecessarily
37         # weight 3.500
38         alg straw
39         hash 0  # rjenkins1
40         item host0 weight 1.000
41         item host1 weight 2.500
42 }
43
44 # rules
45 rule data {
46         id 0
47         type replicated
48         min_size 1
49         max_size 10
50         step take cluster0
51         step chooseleaf firstn 0 type host
52         step emit
53 }
54 rule metadata {
55         id 1
56         type replicated
57         min_size 1
58         max_size 10
59         step take cluster0
60         step chooseleaf firstn 0 type host
61         step emit
62 }
63 rule rbd {
64         id 2
65         type replicated
66         min_size 1
67         max_size 10
68         step take cluster1
69         step chooseleaf firstn 0 type host
70         step emit
71 }
72
73 # end crush map