2012-08-30 07:29:14 +00:00
|
|
|
============================
|
|
|
|
Filestore Config Reference
|
|
|
|
============================
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
The Filestore back end is no longer the default when creating new OSDs,
|
|
|
|
though Filestore OSDs are still supported.
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2022-04-13 03:33:36 +00:00
|
|
|
``filestore_debug_omap_check``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
|
|
|
:Description: Debugging check on synchronization. Expensive. For debugging only.
|
|
|
|
:Type: Boolean
|
|
|
|
:Required: No
|
2017-09-14 13:37:04 +00:00
|
|
|
:Default: ``false``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
|
|
|
|
2013-06-14 23:52:46 +00:00
|
|
|
.. index:: filestore; extended attributes
|
2013-06-07 16:50:03 +00:00
|
|
|
|
2012-09-24 04:52:43 +00:00
|
|
|
Extended Attributes
|
|
|
|
===================
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
Extended Attributes (XATTRs) are important for Filestore OSDs.
|
|
|
|
Some file systems have limits on the number of bytes that can be stored in XATTRs.
|
2019-09-09 19:36:04 +00:00
|
|
|
Additionally, in some cases, the file system may not be as fast as an alternative
|
2012-10-01 20:51:48 +00:00
|
|
|
method of storing XATTRs. The following settings may help improve performance
|
2019-09-09 19:36:04 +00:00
|
|
|
by using a method of storing XATTRs that is extrinsic to the underlying file system.
|
2012-10-01 20:51:48 +00:00
|
|
|
|
2013-04-02 13:54:57 +00:00
|
|
|
Ceph XATTRs are stored as ``inline xattr``, using the XATTRs provided
|
|
|
|
by the underlying file system, if it does not impose a size limit. If
|
2016-04-12 12:50:49 +00:00
|
|
|
there is a size limit (4KB total on ext4, for instance), some Ceph
|
2020-12-15 06:02:31 +00:00
|
|
|
XATTRs will be stored in a key/value database when either the
|
|
|
|
``filestore_max_inline_xattr_size`` or ``filestore_max_inline_xattrs``
|
|
|
|
threshold is reached.
|
2012-09-24 04:52:43 +00:00
|
|
|
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_max_inline_xattr_size``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2019-09-09 19:36:04 +00:00
|
|
|
:Description: The maximum size of an XATTR stored in the file system (i.e., XFS,
|
2020-12-15 06:02:31 +00:00
|
|
|
Btrfs, EXT4, etc.) per object. Should not be larger than the
|
2019-09-09 19:36:04 +00:00
|
|
|
file system can handle. Default value of 0 means to use the value
|
|
|
|
specific to the underlying file system.
|
2016-11-08 10:08:24 +00:00
|
|
|
:Type: Unsigned 32-bit Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``0``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_max_inline_xattr_size_xfs``
|
2016-11-08 10:08:24 +00:00
|
|
|
|
2019-09-09 19:36:04 +00:00
|
|
|
:Description: The maximum size of an XATTR stored in the XFS file system.
|
2020-12-15 06:02:31 +00:00
|
|
|
Only used if ``filestore_max_inline_xattr_size`` == 0.
|
2016-11-08 10:08:24 +00:00
|
|
|
:Type: Unsigned 32-bit Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``65536``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_max_inline_xattr_size_btrfs``
|
2016-11-08 10:08:24 +00:00
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
:Description: The maximum size of an XATTR stored in the Btrfs file system.
|
|
|
|
Only used if ``filestore_max_inline_xattr_size`` == 0.
|
2016-11-08 10:08:24 +00:00
|
|
|
:Type: Unsigned 32-bit Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``2048``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_max_inline_xattr_size_other``
|
2016-11-08 10:08:24 +00:00
|
|
|
|
2019-09-09 19:36:04 +00:00
|
|
|
:Description: The maximum size of an XATTR stored in other file systems.
|
2020-12-15 06:02:31 +00:00
|
|
|
Only used if ``filestore_max_inline_xattr_size`` == 0.
|
2012-08-30 07:29:14 +00:00
|
|
|
:Type: Unsigned 32-bit Integer
|
|
|
|
:Required: No
|
2012-09-24 04:52:43 +00:00
|
|
|
:Default: ``512``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_max_inline_xattrs``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2019-09-09 19:36:04 +00:00
|
|
|
:Description: The maximum number of XATTRs stored in the file system per object.
|
2016-11-08 10:08:24 +00:00
|
|
|
Default value of 0 means to use the value specific to the
|
2019-09-09 19:36:04 +00:00
|
|
|
underlying file system.
|
2016-11-08 10:08:24 +00:00
|
|
|
:Type: 32-bit Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``0``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_max_inline_xattrs_xfs``
|
2016-11-08 10:08:24 +00:00
|
|
|
|
2019-09-09 19:36:04 +00:00
|
|
|
:Description: The maximum number of XATTRs stored in the XFS file system per object.
|
2020-12-15 06:02:31 +00:00
|
|
|
Only used if ``filestore_max_inline_xattrs`` == 0.
|
2016-11-08 10:08:24 +00:00
|
|
|
:Type: 32-bit Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``10``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_max_inline_xattrs_btrfs``
|
2016-11-08 10:08:24 +00:00
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
:Description: The maximum number of XATTRs stored in the Btrfs file system per object.
|
|
|
|
Only used if ``filestore_max_inline_xattrs`` == 0.
|
2016-11-08 10:08:24 +00:00
|
|
|
:Type: 32-bit Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``10``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_max_inline_xattrs_other``
|
2016-11-08 10:08:24 +00:00
|
|
|
|
2019-09-09 19:36:04 +00:00
|
|
|
:Description: The maximum number of XATTRs stored in other file systems per object.
|
2020-12-15 06:02:31 +00:00
|
|
|
Only used if ``filestore_max_inline_xattrs`` == 0.
|
2012-08-30 07:29:14 +00:00
|
|
|
:Type: 32-bit Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``2``
|
|
|
|
|
2013-06-14 23:52:46 +00:00
|
|
|
.. index:: filestore; synchronization
|
2012-08-30 07:29:14 +00:00
|
|
|
|
|
|
|
Synchronization Intervals
|
|
|
|
=========================
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
Filestore needs to periodically quiesce writes and synchronize the
|
2019-09-09 19:36:04 +00:00
|
|
|
file system, which creates a consistent commit point. It can then free journal
|
2012-12-03 20:22:37 +00:00
|
|
|
entries up to the commit point. Synchronizing more frequently tends to reduce
|
|
|
|
the time required to perform synchronization, and reduces the amount of data
|
|
|
|
that needs to remain in the journal. Less frequent synchronization allows the
|
2020-12-15 06:02:31 +00:00
|
|
|
backing file system to coalesce small writes and metadata updates more
|
|
|
|
optimally, potentially resulting in more efficient synchronization at the
|
|
|
|
expense of potentially increasing tail latency.
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_max_sync_interval``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
:Description: The maximum interval in seconds for synchronizing Filestore.
|
2012-08-30 07:29:14 +00:00
|
|
|
:Type: Double
|
|
|
|
:Required: No
|
|
|
|
:Default: ``5``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_min_sync_interval``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
:Description: The minimum interval in seconds for synchronizing Filestore.
|
2012-08-30 07:29:14 +00:00
|
|
|
:Type: Double
|
|
|
|
:Required: No
|
|
|
|
:Default: ``.01``
|
|
|
|
|
|
|
|
|
2013-06-14 23:52:46 +00:00
|
|
|
.. index:: filestore; flusher
|
2013-06-07 16:50:03 +00:00
|
|
|
|
2012-08-30 07:29:14 +00:00
|
|
|
Flusher
|
|
|
|
=======
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
The Filestore flusher forces data from large writes to be written out using
|
|
|
|
``sync_file_range`` before the sync in order to (hopefully) reduce the cost of
|
|
|
|
the eventual sync. In practice, disabling 'filestore_flusher' seems to improve
|
2012-09-24 04:52:43 +00:00
|
|
|
performance in some cases.
|
2012-08-30 07:29:14 +00:00
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_flusher``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
|
|
|
:Description: Enables the filestore flusher.
|
|
|
|
:Type: Boolean
|
|
|
|
:Required: No
|
|
|
|
:Default: ``false``
|
|
|
|
|
2013-08-19 18:56:48 +00:00
|
|
|
.. deprecated:: v.65
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_flusher_max_fds``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
|
|
|
:Description: Sets the maximum number of file descriptors for the flusher.
|
|
|
|
:Type: Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``512``
|
|
|
|
|
2013-08-19 18:56:48 +00:00
|
|
|
.. deprecated:: v.65
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_sync_flush``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
|
|
|
:Description: Enables the synchronization flusher.
|
|
|
|
:Type: Boolean
|
|
|
|
:Required: No
|
|
|
|
:Default: ``false``
|
|
|
|
|
2013-08-19 18:56:48 +00:00
|
|
|
.. deprecated:: v.65
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_fsync_flushes_journal_data``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2019-09-09 19:36:04 +00:00
|
|
|
:Description: Flush journal data during file system synchronization.
|
2012-08-30 07:29:14 +00:00
|
|
|
:Type: Boolean
|
|
|
|
:Required: No
|
|
|
|
:Default: ``false``
|
|
|
|
|
|
|
|
|
2013-06-14 23:52:46 +00:00
|
|
|
.. index:: filestore; queue
|
2013-06-07 16:50:03 +00:00
|
|
|
|
2012-08-30 07:29:14 +00:00
|
|
|
Queue
|
|
|
|
=====
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
The following settings provide limits on the size of the Filestore queue.
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_queue_max_ops``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2012-10-01 20:51:48 +00:00
|
|
|
:Description: Defines the maximum number of in progress operations the file store accepts before blocking on queuing new operations.
|
2012-08-30 07:29:14 +00:00
|
|
|
:Type: Integer
|
|
|
|
:Required: No. Minimal impact on performance.
|
2017-06-13 11:57:07 +00:00
|
|
|
:Default: ``50``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_queue_max_bytes``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
|
|
|
:Description: The maximum number of bytes for an operation.
|
|
|
|
:Type: Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``100 << 20``
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-06-14 23:52:46 +00:00
|
|
|
.. index:: filestore; timeouts
|
2012-08-30 07:29:14 +00:00
|
|
|
|
|
|
|
Timeouts
|
|
|
|
========
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_op_threads``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2019-09-09 19:36:04 +00:00
|
|
|
:Description: The number of file system operation threads that execute in parallel.
|
2012-08-30 07:29:14 +00:00
|
|
|
:Type: Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``2``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_op_thread_timeout``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2019-09-09 19:36:04 +00:00
|
|
|
:Description: The timeout for a file system operation thread (in seconds).
|
2012-08-30 07:29:14 +00:00
|
|
|
:Type: Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``60``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_op_thread_suicide_timeout``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
|
|
|
:Description: The timeout for a commit operation before cancelling the commit (in seconds).
|
|
|
|
:Type: Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``180``
|
|
|
|
|
|
|
|
|
2013-06-14 23:52:46 +00:00
|
|
|
.. index:: filestore; btrfs
|
|
|
|
|
2012-08-30 07:29:14 +00:00
|
|
|
B-Tree Filesystem
|
|
|
|
=================
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_btrfs_snap``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
|
|
|
:Description: Enable snapshots for a ``btrfs`` filestore.
|
|
|
|
:Type: Boolean
|
|
|
|
:Required: No. Only used for ``btrfs``.
|
|
|
|
:Default: ``true``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_btrfs_clone_range``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
|
|
|
:Description: Enable cloning ranges for a ``btrfs`` filestore.
|
|
|
|
:Type: Boolean
|
|
|
|
:Required: No. Only used for ``btrfs``.
|
|
|
|
:Default: ``true``
|
|
|
|
|
2013-06-14 23:52:46 +00:00
|
|
|
|
|
|
|
.. index:: filestore; journal
|
|
|
|
|
2012-09-24 04:52:43 +00:00
|
|
|
Journal
|
|
|
|
=======
|
2012-08-30 07:29:14 +00:00
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_journal_parallel``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
:Description: Enables parallel journaling, default for Btrfs.
|
2012-09-24 04:52:43 +00:00
|
|
|
:Type: Boolean
|
|
|
|
:Required: No
|
|
|
|
:Default: ``false``
|
2012-08-30 07:29:14 +00:00
|
|
|
|
2012-09-24 04:52:43 +00:00
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_journal_writeahead``
|
2012-09-24 04:52:43 +00:00
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
:Description: Enables writeahead journaling, default for XFS.
|
2012-09-24 04:52:43 +00:00
|
|
|
:Type: Boolean
|
|
|
|
:Required: No
|
|
|
|
:Default: ``false``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_journal_trailing``
|
2012-09-24 04:52:43 +00:00
|
|
|
|
2012-12-04 22:48:35 +00:00
|
|
|
:Description: Deprecated, never use.
|
2012-08-30 07:29:14 +00:00
|
|
|
:Type: Boolean
|
|
|
|
:Required: No
|
|
|
|
:Default: ``false``
|
|
|
|
|
|
|
|
|
2012-09-24 04:52:43 +00:00
|
|
|
Misc
|
|
|
|
====
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_merge_threshold``
|
2012-09-24 04:52:43 +00:00
|
|
|
|
2012-12-04 22:48:35 +00:00
|
|
|
:Description: Min number of files in a subdir before merging into parent
|
2014-05-07 09:41:36 +00:00
|
|
|
NOTE: A negative value means to disable subdir merging
|
2012-09-24 04:52:43 +00:00
|
|
|
:Type: Integer
|
|
|
|
:Required: No
|
2018-06-28 14:26:25 +00:00
|
|
|
:Default: ``-10``
|
2012-09-24 04:52:43 +00:00
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_split_multiple``
|
2012-09-24 04:52:43 +00:00
|
|
|
|
2016-06-04 01:46:15 +00:00
|
|
|
:Description: ``(filestore_split_multiple * abs(filestore_merge_threshold) + (rand() % filestore_split_rand_factor)) * 16``
|
2013-06-07 16:50:03 +00:00
|
|
|
is the maximum number of files in a subdirectory before
|
|
|
|
splitting into child directories.
|
|
|
|
|
2012-09-24 04:52:43 +00:00
|
|
|
:Type: Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``2``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_split_rand_factor``
|
2016-06-04 01:46:15 +00:00
|
|
|
|
|
|
|
:Description: A random factor added to the split threshold to avoid
|
2020-12-15 06:02:31 +00:00
|
|
|
too many (expensive) Filestore splits occurring at once. See
|
|
|
|
``filestore_split_multiple`` for details.
|
|
|
|
This can only be changed offline for an existing OSD,
|
|
|
|
via the ``ceph-objectstore-tool apply-layout-settings`` command.
|
2016-06-04 01:46:15 +00:00
|
|
|
|
|
|
|
:Type: Unsigned 32-bit Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``20``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_update_to``
|
2012-09-24 04:52:43 +00:00
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
:Description: Limits Filestore auto upgrade to specified version.
|
2012-09-24 04:52:43 +00:00
|
|
|
:Type: Integer
|
|
|
|
:Required: No
|
|
|
|
:Default: ``1000``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_blackhole``
|
2012-09-24 04:52:43 +00:00
|
|
|
|
|
|
|
:Description: Drop any new transactions on the floor.
|
|
|
|
:Type: Boolean
|
|
|
|
:Required: No
|
|
|
|
:Default: ``false``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_dump_file``
|
2012-09-24 04:52:43 +00:00
|
|
|
|
2013-06-07 16:50:03 +00:00
|
|
|
:Description: File onto which store transaction dumps.
|
2012-09-24 04:52:43 +00:00
|
|
|
:Type: Boolean
|
|
|
|
:Required: No
|
|
|
|
:Default: ``false``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_kill_at``
|
2012-09-24 04:52:43 +00:00
|
|
|
|
|
|
|
:Description: inject a failure at the n'th opportunity
|
|
|
|
:Type: String
|
|
|
|
:Required: No
|
|
|
|
:Default: ``false``
|
|
|
|
|
|
|
|
|
2020-12-15 06:02:31 +00:00
|
|
|
``filestore_fail_eio``
|
2012-09-24 04:52:43 +00:00
|
|
|
|
|
|
|
:Description: Fail/Crash on eio.
|
|
|
|
:Type: Boolean
|
|
|
|
:Required: No
|
|
|
|
:Default: ``true``
|
|
|
|
|