Project

General

Profile

crush.txt

chuanhong wang, 06/23/2015 07:22 AM

Download (1.54 KB)

 
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

    
7
# devices
8
device 0 osd.0
9
device 1 osd.1
10
device 2 osd.2
11
device 3 osd.3
12
device 4 osd.4
13
device 5 osd.5
14
device 6 osd.6
15
device 7 osd.7
16
device 8 osd.8
17
device 9 device9
18
device 10 device10
19
device 11 device11
20
device 12 device12
21
device 13 osd.13
22
device 14 osd.14
23
device 15 osd.15
24
device 16 osd.16
25

    
26
# types
27
type 0 osd
28
type 1 host
29
type 2 chassis
30
type 3 rack
31
type 4 row
32
type 5 pdu
33
type 6 pod
34
type 7 room
35
type 8 datacenter
36
type 9 region
37
type 10 root
38

    
39
# buckets
40
host ceph2 {
41
	id -3		# do not change unnecessarily
42
	# weight 1.100
43
	alg straw
44
	hash 0	# rjenkins1
45
	item osd.4 weight 0.270
46
	item osd.6 weight 0.270
47
	item osd.8 weight 0.270
48
	item osd.1 weight 0.290
49
}
50
host ceph3 {
51
	id -4		# do not change unnecessarily
52
	# weight 1.370
53
	alg straw
54
	hash 0	# rjenkins1
55
	item osd.0 weight 0.290
56
	item osd.2 weight 0.270
57
	item osd.3 weight 0.270
58
	item osd.5 weight 0.270
59
	item osd.7 weight 0.270
60
}
61
host ceph1 {
62
	id -2		# do not change unnecessarily
63
	# weight 7.270
64
	alg straw
65
	hash 0	# rjenkins1
66
	item osd.13 weight 1.820
67
	item osd.14 weight 1.820
68
	item osd.15 weight 1.810
69
	item osd.16 weight 1.820
70
}
71
root default {
72
	id -1		# do not change unnecessarily
73
	# weight 9.740
74
	alg straw
75
	hash 0	# rjenkins1
76
	item ceph2 weight 1.100
77
	item ceph3 weight 1.370
78
	item ceph1 weight 7.270
79
}
80

    
81
# rules
82
rule replicated_ruleset {
83
	ruleset 0
84
	type replicated
85
	min_size 1
86
	max_size 10
87
	step take default
88
	step chooseleaf firstn 0 type host
89
	step emit
90
}
91

    
92
# end crush map