Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / crush / crush-choose-args-expected-one-more-3.txt
1 # begin crush map
2 tunable choose_local_tries 0
3 tunable choose_local_fallback_tries 0
4 tunable choose_total_tries 50
5 tunable chooseleaf_descend_once 1
6 tunable chooseleaf_vary_r 1
7 tunable chooseleaf_stable 1
8 tunable straw_calc_version 1
9 tunable allowed_bucket_algs 54
10
11 # devices
12 device 0 osd.0
13 device 1 osd.1
14
15 # types
16 type 0 osd
17 type 1 host
18 type 2 chassis
19 type 3 rack
20 type 4 row
21 type 5 pdu
22 type 6 pod
23 type 7 room
24 type 8 datacenter
25 type 9 region
26 type 10 root
27
28 # buckets
29 host HOST {
30         id -2           # do not change unnecessarily
31         # weight 6.000
32         alg straw2
33         hash 0  # rjenkins1
34         item osd.0 weight 3.000
35         item osd.1 weight 3.000
36 }
37 root default {
38         id -1           # do not change unnecessarily
39         # weight 6.000
40         alg straw2
41         hash 0  # rjenkins1
42         item HOST weight 6.000
43 }
44
45 # rules
46 rule replicated_rule {
47         id 0
48         type replicated
49         min_size 1
50         max_size 10
51         step take default
52         step choose firstn 0 type osd
53         step emit
54 }
55
56 # choose_args
57 choose_args 0 {
58   {
59     bucket_id -1
60     weight_set [
61       [ 6.000 ]
62       [ 6.000 ]
63     ]
64     ids [ -10 ]
65   }
66   {
67     bucket_id -2
68     weight_set [
69       [ 2.000 3.000 ]
70       [ 2.000 3.000 ]
71     ]
72     ids [ -20 1 ]
73   }
74 }
75
76 # end crush map