2012-10-01 20:50:31 +00:00
|
|
|
==========================
|
|
|
|
Journal Config Reference
|
|
|
|
==========================
|
|
|
|
|
|
|
|
Ceph OSDs use a journal for two reasons: speed and consistency.
|
|
|
|
|
|
|
|
- **Speed:** The journal enables the OSD to commit small writes quickly.
|
|
|
|
Ceph writes small, random i/o to the journal sequentially, which tends to
|
|
|
|
speed up bursty workloads by allowing the backing filesystem more time to
|
|
|
|
coalesce writes. The OSD journal, however, can lead to spiky performance
|
|
|
|
with short spurts of high-speed writes followed by periods without any
|
|
|
|
write progress as the filesystem catches up to the journal.
|
|
|
|
|
2012-12-03 20:22:37 +00:00
|
|
|
- **Consistency:** Ceph OSDs require a filesystem interface that guarantees
|
2012-10-01 20:50:31 +00:00
|
|
|
atomic compound operations. Ceph OSDs write a description of the operation
|
|
|
|
to the journal and apply the operation to the filesystem. This enables
|
|
|
|
atomic updates to an object (for example, placement group metadata). Every
|
|
|
|
few seconds--between ``filestore max sync interval`` and
|
|
|
|
``filestore min sync interval``--the OSD stops writes and synchronizes the
|
|
|
|
journal with the filesystem, allowing OSDs to trim operations from the
|
|
|
|
journal and reuse the space. On failure, OSDs replay the journal starting
|
|
|
|
after the last synchronization operation.
|
|
|
|
|
|
|
|
Ceph OSDs support the following journal settings:
|
2012-09-24 04:54:20 +00:00
|
|
|
|
|
|
|
``journal dio``
|
|
|
|
|
2012-10-01 20:50:31 +00:00
|
|
|
:Description: Enables direct i/o to the journal. Requires ``journal block align`` set to ``true``.
|
2012-09-24 04:54:20 +00:00
|
|
|
:Type: Boolean
|
2012-10-01 20:50:31 +00:00
|
|
|
:Required: Yes when using ``aio``.
|
2012-09-24 04:54:20 +00:00
|
|
|
:Default: ``true``
|
|
|
|
|
|
|
|
|
|
|
|
``journal aio``
|
|
|
|
|
2012-10-01 20:50:31 +00:00
|
|
|
:Description: Enables using ``libaio`` for asynchronous writes to the journal. Requires ``journal dio`` set to ``true``.
|
2012-09-24 04:54:20 +00:00
|
|
|
:Type: Boolean
|
2012-10-01 20:50:31 +00:00
|
|
|
:Required: No.
|
2012-09-24 04:54:20 +00:00
|
|
|
:Default: ``false``
|
|
|
|
|
|
|
|
|
|
|
|
``journal block align``
|
|
|
|
|
2012-10-01 20:50:31 +00:00
|
|
|
:Description: Block aligns writes. Required for ``dio`` and ``aio``.
|
2012-09-24 04:54:20 +00:00
|
|
|
:Type: Boolean
|
2012-10-01 20:50:31 +00:00
|
|
|
:Required: Yes when using ``dio`` and ``aio``.
|
2012-09-24 04:54:20 +00:00
|
|
|
:Default: ``true``
|
|
|
|
|
|
|
|
|
|
|
|
``journal max write bytes``
|
|
|
|
|
2012-10-01 20:50:31 +00:00
|
|
|
:Description: The maximum number of bytes the journal will write at any one time.
|
2012-09-24 04:54:20 +00:00
|
|
|
:Type: Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``10 << 20``
|
|
|
|
|
|
|
|
|
|
|
|
``journal max write entries``
|
|
|
|
|
2012-10-01 20:50:31 +00:00
|
|
|
:Description: The maximum number of entries the journal will write at any one time.
|
2012-09-24 04:54:20 +00:00
|
|
|
:Type: Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``100``
|
|
|
|
|
|
|
|
|
|
|
|
``journal queue max ops``
|
|
|
|
|
2012-10-01 20:50:31 +00:00
|
|
|
:Description: The maximum number of operations allowed in the queue at any one time.
|
2012-09-24 04:54:20 +00:00
|
|
|
:Type: Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``500``
|
|
|
|
|
|
|
|
|
|
|
|
``journal queue max bytes``
|
|
|
|
|
2012-10-01 20:50:31 +00:00
|
|
|
:Description: The maximum number of bytes allowed in the queue at any one time.
|
2012-09-24 04:54:20 +00:00
|
|
|
:Type: Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``10 << 20``
|
|
|
|
|
|
|
|
|
|
|
|
``journal align min size``
|
|
|
|
|
|
|
|
:Description: Align data payloads greater than the specified minimum.
|
|
|
|
:Type: Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``64 << 10``
|
|
|
|
|
|
|
|
|
|
|
|
``journal zero on create``
|
|
|
|
|
2012-10-01 20:50:31 +00:00
|
|
|
:Description: Causes the file store to overwrite the entire journal with ``0``'s during ``mkfs``.
|
2012-09-24 04:54:20 +00:00
|
|
|
:Type: Boolean
|
|
|
|
:Required: No
|
|
|
|
:Default: ``false``
|