[dosaboy,r=james-page] Add osd-journal-size option

This commit is contained in:
James Page 2013-12-19 12:14:28 +00:00
commit 277c6c3e7a
4 changed files with 15 additions and 3 deletions

View File

@ -49,6 +49,17 @@ options:
no journal device will be used.
.
Only supported with ceph >= 0.48.3.
osd-journal-size:
type: int
default: 1024
description: |
Ceph osd journal size. The journal size should be at least twice the
product of the expected drive speed multiplied by filestore max sync
interval. However, the most common practice is to partition the journal
drive (often an SSD), and mount it such that Ceph uses the entire
partition for the journal.
.
Only supported with ceph >= 0.48.3.
osd-format:
type: string
default: xfs

View File

@ -71,7 +71,8 @@ def emit_cephconf():
'auth_supported': config('auth-supported'),
'mon_hosts': ' '.join(get_mon_hosts()),
'fsid': config('fsid'),
'version': ceph.get_ceph_version()
'version': ceph.get_ceph_version(),
'osd_journal_size': config('osd-journal-size')
}
# Install ceph.conf as an alternative to support
# co-existence with other charms that write this file

View File

@ -1 +1 @@
103
104

View File

@ -18,6 +18,6 @@
[osd]
keyring = /var/lib/ceph/osd/$cluster-$id/keyring
osd journal size = 1000
osd journal size = {{ osd_journal_size }}
filestore xattr use omap = true