Project

General

Profile

crush.txt

chuanhong wang, 06/19/2015 08:13 AM

Download (4.48 KB)

 
1
{ "devices": [
2
        { "id": 0,
3
          "name": "osd.0"},
4
        { "id": 1,
5
          "name": "osd.1"},
6
        { "id": 2,
7
          "name": "osd.2"},
8
        { "id": 3,
9
          "name": "osd.3"},
10
        { "id": 4,
11
          "name": "osd.4"},
12
        { "id": 5,
13
          "name": "osd.5"},
14
        { "id": 6,
15
          "name": "osd.6"},
16
        { "id": 7,
17
          "name": "osd.7"},
18
        { "id": 8,
19
          "name": "osd.8"},
20
        { "id": 9,
21
          "name": "device9"},
22
        { "id": 10,
23
          "name": "device10"},
24
        { "id": 11,
25
          "name": "device11"},
26
        { "id": 12,
27
          "name": "device12"},
28
        { "id": 13,
29
          "name": "osd.13"},
30
        { "id": 14,
31
          "name": "osd.14"},
32
        { "id": 15,
33
          "name": "osd.15"},
34
        { "id": 16,
35
          "name": "osd.16"}],
36
  "types": [
37
        { "type_id": 0,
38
          "name": "osd"},
39
        { "type_id": 1,
40
          "name": "host"},
41
        { "type_id": 2,
42
          "name": "chassis"},
43
        { "type_id": 3,
44
          "name": "rack"},
45
        { "type_id": 4,
46
          "name": "row"},
47
        { "type_id": 5,
48
          "name": "pdu"},
49
        { "type_id": 6,
50
          "name": "pod"},
51
        { "type_id": 7,
52
          "name": "room"},
53
        { "type_id": 8,
54
          "name": "datacenter"},
55
        { "type_id": 9,
56
          "name": "region"},
57
        { "type_id": 10,
58
          "name": "root"}],
59
  "buckets": [
60
        { "id": -1,
61
          "name": "default",
62
          "type_id": 10,
63
          "type_name": "root",
64
          "weight": 638313,
65
          "alg": "straw",
66
          "hash": "rjenkins1",
67
          "items": [
68
                { "id": -3,
69
                  "weight": 72087,
70
                  "pos": 0},
71
                { "id": -4,
72
                  "weight": 89781,
73
                  "pos": 1},
74
                { "id": -2,
75
                  "weight": 476445,
76
                  "pos": 2}]},
77
        { "id": -2,
78
          "name": "ceph1",
79
          "type_id": 1,
80
          "type_name": "host",
81
          "weight": 476445,
82
          "alg": "straw",
83
          "hash": "rjenkins1",
84
          "items": [
85
                { "id": 13,
86
                  "weight": 119275,
87
                  "pos": 0},
88
                { "id": 14,
89
                  "weight": 119275,
90
                  "pos": 1},
91
                { "id": 15,
92
                  "weight": 118620,
93
                  "pos": 2},
94
                { "id": 16,
95
                  "weight": 119275,
96
                  "pos": 3}]},
97
        { "id": -3,
98
          "name": "ceph2",
99
          "type_id": 1,
100
          "type_name": "host",
101
          "weight": 72087,
102
          "alg": "straw",
103
          "hash": "rjenkins1",
104
          "items": [
105
                { "id": 4,
106
                  "weight": 17694,
107
                  "pos": 0},
108
                { "id": 6,
109
                  "weight": 17694,
110
                  "pos": 1},
111
                { "id": 8,
112
                  "weight": 17694,
113
                  "pos": 2},
114
                { "id": 1,
115
                  "weight": 19005,
116
                  "pos": 3}]},
117
        { "id": -4,
118
          "name": "ceph3",
119
          "type_id": 1,
120
          "type_name": "host",
121
          "weight": 89781,
122
          "alg": "straw",
123
          "hash": "rjenkins1",
124
          "items": [
125
                { "id": 0,
126
                  "weight": 19005,
127
                  "pos": 0},
128
                { "id": 2,
129
                  "weight": 17694,
130
                  "pos": 1},
131
                { "id": 3,
132
                  "weight": 17694,
133
                  "pos": 2},
134
                { "id": 5,
135
                  "weight": 17694,
136
                  "pos": 3},
137
                { "id": 7,
138
                  "weight": 17694,
139
                  "pos": 4}]}],
140
  "rules": [
141
        { "rule_id": 0,
142
          "rule_name": "replicated_ruleset",
143
          "ruleset": 0,
144
          "type": 1,
145
          "min_size": 1,
146
          "max_size": 10,
147
          "steps": [
148
                { "op": "take",
149
                  "item": -1,
150
                  "item_name": "default"},
151
                { "op": "chooseleaf_firstn",
152
                  "num": 0,
153
                  "type": "host"},
154
                { "op": "emit"}]}],
155
  "tunables": { "choose_local_tries": 0,
156
      "choose_local_fallback_tries": 0,
157
      "choose_total_tries": 50,
158
      "chooseleaf_descend_once": 1,
159
      "profile": "bobtail",
160
      "optimal_tunables": 0,
161
      "legacy_tunables": 0,
162
      "require_feature_tunables": 1,
163
      "require_feature_tunables2": 1,
164
      "require_feature_tunables3": 0,
165
      "has_v2_rules": 0,
166
      "has_v3_rules": 0}}