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