[james-page, r=gnuoy] Add configuration option for toggling use of direct io for OSD journals

This commit is contained in:
Liam Young 2016-02-22 09:25:29 +00:00
commit 12ec3ee899
3 changed files with 7 additions and 0 deletions

View File

@ -152,3 +152,8 @@ options:
description: |
A comma-separated list of nagios servicegroups.
If left empty, the nagios_context will be used as the servicegroup
use-direct-io:
default: True
type: boolean
description: Configure use of direct IO for OSD journals.

View File

@ -86,6 +86,7 @@ def emit_cephconf():
'ceph_public_network': config('ceph-public-network'),
'ceph_cluster_network': config('ceph-cluster-network'),
'loglevel': config('loglevel'),
'dio': str(config('use-direct-io')).lower(),
}
if config('prefer-ipv6'):

View File

@ -40,4 +40,5 @@ keyring = /var/lib/ceph/mds/$cluster-$id/keyring
keyring = /var/lib/ceph/osd/$cluster-$id/keyring
osd journal size = {{ osd_journal_size }}
filestore xattr use omap = true
journal dio = {{ dio }}