Project

General

Profile

ceph_full_mon.conf

ceph.conf file giving parsing errors - Stefan Kooman, 12/01/2017 01:16 PM

Download (3.59 KB)

 
1
[global]
2
# http://docs.ceph.com/docs/master/rados/configuration/mon-config-ref/#cluster-id
3
fsid = 7d44bbde-2442-59dc-8c71-e7dad785c99b
4

    
5
# http://docs.ceph.com/docs/master/rados/configuration/ms-ref/
6
ms bind ipv6 = true
7

    
8
ms tcp read timeout = 60         # default = 900
9

    
10
# http://docs.ceph.com/docs/master/rados/configuration/mon-osd-interaction/
11
osd heartbeat grace = 4                  # default 6
12
# Do _NOT_  scale based on laggy estimations
13
mon osd adjust heartbeat grace = false
14

    
15
# need to be tuned for production
16
# Ensure you have a realistic number of placement groups. We recommend
17
# approximately 100 per OSD. E.g., total number of OSDs multiplied by 100
18
# divided by the number of replicas (i.e., osd pool default size). So for
19
# 10 OSDs and osd pool default size = 4, we'd recommend approximately
20
# (100 * 10) / 4 = 250.
21
osd pool default pg num = 256
22
osd pool default pgp num = 256
23

    
24
osd pool default size = 3         # Write an object 3 times.
25
osd pool default min size = 2     # Allow writing two copies in a degraded state.
26

    
27
[mon]
28
# http://docs.ceph.com/docs/master/rados/configuration/mon-config-ref/
29
# TUNING #
30
mon lease = 1.0                        # default 5
31
mon election timeout = 2               # default 5 
32
mon lease renew interval factor = 0.4  # default 0.6
33
mon lease ack timeout factor = 1.5     # default 2.0
34
mon timecheck interval = 60            # default 300
35

    
36
# http://docs.ceph.com/docs/master/rados/configuration/mon-osd-interaction/#monitor-settings 
37
mon osd reporter subtree level = datacenter
38

    
39
mon compact on start = true            # keep rocksdb small
40

    
41
# STORAGE CAPACITY #
42
# http://docs.ceph.com/docs/master/rados/configuration/mon-config-ref/#storage-capacity
43
mon osd full ratio = .90
44
mon osd backfillfull ratio = .85
45
mon osd nearfull ratio = .80
46

    
47
# need to be removed before production
48
mon_allow_pool_delete = true
49

    
50
# AUTH CONFIGURATION SETTINGS #
51
# http://docs.ceph.com/docs/master/rados/configuration/auth-config-ref/#configuration-settings
52
auth_cluster_required = cephx
53
auth_service_required = cephx
54
auth_client_required = cephx
55

    
56
# debug options, restart to activate
57
debug_context = 0/0
58
debug_crush = 0/0
59
debug_buffer = 0/0
60
debug_timer = 0/0
61
debug_filer = 0/0
62
debug_objecter = 0/0
63
debug_rados = 0/0
64
debug_rbd = 0/0
65
debug_journaler = 0/0
66
debug_objectcatcher = 0/0
67
debug_client = 0/0
68
debug_osd = 0/0
69
debug_optracker = 0/0
70
debug_objclass = 0/0
71
debug_filestore = 0/0
72
debug_journal = 0/0
73
debug_ms = 0/0
74
debug_monc = 0/0
75
debug_tp = 0/0
76
debug_auth = 0/0
77
debug_finisher = 0/0
78
debug_heartbeatmap = 0/0
79
debug_perfcounter = 0/0
80
debug_asok = 0/0
81
debug_throttle = 0/0
82
debug_mon = 5/5
83
debug_paxos = 0/0
84
debug_rgw = 0/0
85
debug bluestore = 0/0
86
debug bluefs = 0/0
87
debug bdev = 0/0
88
debug rocksdb = 0/0
89

    
90
[osd]
91
# http://docs.ceph.com/docs/master/rados/configuration/mon-osd-interaction/
92
osd crush update on start = false
93
osd heartbeat interval = 1
94
osd mon heartbeat interval = 10
95
osd mon report interval min = 1
96
osd mon report interval max = 15
97

    
98
# SCRUBBING #
99
# http://docs.ceph.com/docs/master/rados/configuration/osd-config-ref/#scrubbing
100
osd scrub interval randomize ratio=0
101
osd deep scrub interval= 2592000
102
osd scrub begin hour=5
103
osd scrub end hour=7
104

    
105
[osd.21]
106
debug_osd = 5/5
107

    
108
# http://docs.ceph.com/docs/master/rados/configuration/mon-config-ref/#initial-members
109
mon initial members = mon4
110

    
111
[mon.mon1]
112
    host = mon1
113
    mon addr = [2001:7b8:80:1:0:1:1:1]:6789
114
[mon.mon2]
115
    host = mon2
116
    mon addr = [2001:7b8:80:1:0:1:1:2]:6789
117
[mon.mon3]
118
    host = mon3
119
    mon addr = [2001:7b8:80:3:0:2c:1:3]:6789
120
[mon.mon4]
121
    host = mon4
122
    mon addr = [2001:7b8:80:3:0:2c:1:4]:6789
123
[mon.mon5]
124
    host = mon5
125
    mon addr = [2001:7b8:80:2:0:2a:1:5]:6789