2012-10-01 20:50:31 +00:00
|
|
|
==========================
|
|
|
|
Journal Config Reference
|
|
|
|
==========================
|
|
|
|
|
2013-06-14 23:06:59 +00:00
|
|
|
.. index:: journal; journal configuration
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
Filestore OSDs use a journal for two reasons: speed and consistency. Note
|
|
|
|
that since Luminous, the BlueStore OSD back end has been preferred and default.
|
|
|
|
This information is provided for pre-existing OSDs and for rare situations where
|
|
|
|
Filestore is preferred for new deployments.
|
2012-10-01 20:50:31 +00:00
|
|
|
|
2013-06-14 23:06:59 +00:00
|
|
|
- **Speed:** The journal enables the Ceph OSD Daemon to commit small writes
|
|
|
|
quickly. Ceph writes small, random i/o to the journal sequentially, which
|
2019-09-09 19:36:04 +00:00
|
|
|
tends to speed up bursty workloads by allowing the backing file system more
|
2013-06-14 23:06:59 +00:00
|
|
|
time to coalesce writes. The Ceph OSD Daemon's journal, however, can lead
|
|
|
|
to spiky performance with short spurts of high-speed writes followed by
|
2019-09-09 19:36:04 +00:00
|
|
|
periods without any write progress as the file system catches up to the
|
2013-06-14 23:06:59 +00:00
|
|
|
journal.
|
|
|
|
|
2019-09-09 19:36:04 +00:00
|
|
|
- **Consistency:** Ceph OSD Daemons require a file system interface that
|
2013-06-14 23:06:59 +00:00
|
|
|
guarantees atomic compound operations. Ceph OSD Daemons write a description
|
2019-09-09 19:36:04 +00:00
|
|
|
of the operation to the journal and apply the operation to the file system.
|
2013-06-14 23:06:59 +00:00
|
|
|
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 Ceph OSD Daemon stops writes and
|
2019-09-09 19:36:04 +00:00
|
|
|
synchronizes the journal with the file system, allowing Ceph OSD Daemons to
|
2013-06-14 23:06:59 +00:00
|
|
|
trim operations from the journal and reuse the space. On failure, Ceph
|
|
|
|
OSD Daemons replay the journal starting after the last synchronization
|
|
|
|
operation.
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
Ceph OSD Daemons recognize the following journal settings:
|
2012-09-24 04:54:20 +00:00
|
|
|
|
2021-03-28 15:30:44 +00:00
|
|
|
.. confval:: journal_dio
|
|
|
|
.. confval:: journal_aio
|
|
|
|
.. confval:: journal_block_align
|
|
|
|
.. confval:: journal_max_write_bytes
|
|
|
|
.. confval:: journal_max_write_entries
|
|
|
|
.. confval:: journal_align_min_size
|
|
|
|
.. confval:: journal_zero_on_create
|