注意

本文档适用于 Ceph 的开发版本。

Journal Config Reference

警告

FileStore 已在 Reef 版本中弃用,不再受支持。

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.

  • Speed: The journal enables the Ceph OSD Daemon 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 file system more 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 periods without any write progress as the file system catches up to the journal.

  • Consistency: Ceph OSD Daemons require a file system interface that guarantees atomic compound operations. Ceph OSD Daemons write a description of the operation to the journal and apply the operation to the file system. 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 synchronizes the journal with the file system, allowing Ceph OSD Daemons to trim operations from the journal and reuse the space. On failure, Ceph OSD Daemons replay the journal starting after the last synchronization operation.

Ceph OSD Daemons recognize the following journal settings

journal_dio

Enables direct i/o to the journal. Requires journal block align set to true. (deprecateD)

类型:

bool

默认值:

true

journal_aio

Enables using libaio for asynchronous writes to the journal. Requires journal dio set to true. Version 0.61 and later, true. Version 0.60 and earlier, false.

类型:

bool

默认值:

true

journal_block_align

Block aligns write operations. Required for dio and aio.

类型:

bool

默认值:

true

journal_max_write_bytes

The maximum number of bytes the journal will write at any one time.

类型:

大小

默认值:

10Mi

journal_max_write_entries

The maximum number of entries the journal will write at any one time.

类型:

int

默认值:

100

journal_align_min_size

Align data payloads greater than the specified minimum.

类型:

大小

默认值:

64Ki

journal_zero_on_create

Causes Filestore to overwrite the entire journal with 0’s during mkfs.

类型:

bool

默认值:

false

由 Ceph 基金会为您呈现

Ceph 文档是由非营利性 Ceph 基金会 资助和托管的社区资源。如果您希望支持这项工作和我们的其他努力,请考虑 立即加入