이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 9. Journal Configuration Reference


Ceph OSDs use a journal for the following reasons:

Speed
The journal enables the Ceph OSD Daemon to commit small write operations 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 write operations. 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 settings—​the Ceph OSD stops write operations and synchronizes the journal with the file system, allowing Ceph OSDs to trim operations from the journal and reuse the space. On failure, Ceph OSDs replay the journal starting after the last synchronization operation.

9.1. Settings

Ceph OSD Daemons support the following journal settings:

journal_dio
Description
Enables direct I/O to the journal. Requires the journal block align option set to true.
Type
Boolean
Required
Yes when using aio.
Default
true
journal_aio
Description
Enables using libaio for asynchronous writes to the journal. Requires the journal dio option set to true.
Type
Boolean
Required
No.
Default
true.
journal_block_align
Description
Block aligns write operations. Required for dio and aio.
Type
Boolean
Required
Yes when using dio and aio.
Default
true
journal_max_write_bytes
Description
The maximum number of bytes the journal will write at any one time.
Type
Integer
Required
No
Default
10 << 20
journal_max_write_entries
Description
The maximum number of entries the journal will write at any one time.
Type
Integer
Required
No
Default
100
journal_queue_max_ops
Description
The maximum number of operations allowed in the queue at any one time.
Type
Integer
Required
No
Default
500
journal_queue_max_bytes
Description
The maximum number of bytes allowed in the queue at any one time.
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
Description
Causes the file store to overwrite the entire journal with 0’s during `mkfs.
Type
Boolean
Required
No
Default
false
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.