4 Updating Client Configuration
5 -----------------------------
7 Certain client configurations can be applied at runtime. To check if a configuration option can be applied (taken into affect by a client) at runtime, use the `config help` command::
9 ceph config help debug_client
10 debug_client - Debug level for client
11 (str, advanced) Default: 0/5
12 Can update at runtime: true
14 The value takes the form 'N' or 'N/M' where N and M are values between 0 and 99. N is the debug level to log (all values below this are included), and M is the level to gather and buffer in memory. In the event of a crash, the most recent items <= M are dumped to the log file.
16 `config help` tells if a given configuration can be applied at runtime along with the defaults and a description of the configuration option.
18 To update a configuration option at runtime, use the `config set` command::
20 ceph config set client debug_client 20/20
22 Note that this changes a given configuration for all clients.
24 To check configured options use the `config get` command::
26 ceph config get client
27 WHO MASK LEVEL OPTION VALUE RO
28 client advanced debug_client 20/20
29 global advanced osd_pool_default_min_size 1
30 global advanced osd_pool_default_size 3
32 Client Config Reference
33 ------------------------
37 :Description: Set the ACL type. Currently, only possible value is ``"posix_acl"`` to enable POSIX ACL, or an empty string. This option only takes effect when the ``fuse_default_permissions`` is set to ``false``.
40 :Default: ``""`` (no ACL enforcement)
44 :Description: Set client cache midpoint. The midpoint splits the least recently used lists into a hot and warm list.
50 :Description: Set the number of inodes that the client keeps in the metadata cache.
54 ``client caps release delay``
56 :Description: Set the delay between capability releases in seconds. The delay sets how many seconds a client waits to release capabilities that it no longer needs in case the capabilities are needed for another user space operation.
58 :Default: ``5`` (seconds)
60 ``client debug force sync read``
62 :Description: If set to ``true``, clients read data directly from OSDs instead of using a local page cache.
66 ``client dirsize rbytes``
68 :Description: If set to ``true``, use the recursive size of a directory (that is, total of all descendants).
72 ``client max inline size``
74 :Description: Set the maximum size of inlined data stored in a file inode rather than in a separate data object in RADOS. This setting only applies if the ``inline_data`` flag is set on the MDS map.
80 :Description: Comma-delimited strings for client metadata sent to each MDS, in addition to the automatically generated version, host name, and other metadata.
82 :Default: ``""`` (no additional metadata)
86 :Description: Set the group ID of CephFS mount.
90 ``client mount timeout``
92 :Description: Set the timeout for CephFS mount in seconds.
98 :Description: Set the user ID of CephFS mount.
102 ``client mountpoint``
104 :Description: Directory to mount on the CephFS file system. An alternative to the ``-r`` option of the ``ceph-fuse`` command.
110 :Description: Enable object caching.
114 ``client oc max dirty``
116 :Description: Set the maximum number of dirty bytes in the object cache.
118 :Default: ``104857600`` (100MB)
120 ``client oc max dirty age``
122 :Description: Set the maximum age in seconds of dirty data in the object cache before writeback.
124 :Default: ``5.0`` (seconds)
126 ``client oc max objects``
128 :Description: Set the maximum number of objects in the object cache.
134 :Description: Set how many bytes of data will the client cache.
136 :Default: ``209715200`` (200 MB)
138 ``client oc target dirty``
140 :Description: Set the target size of dirty data. We recommend to keep this number low.
142 :Default: ``8388608`` (8MB)
144 ``client permissions``
146 :Description: Check client permissions on all I/O operations.
152 :Description: Enable client quota checking if set to ``true``.
158 :Description: Report root directory quota for the ``statfs`` operation.
162 ``client readahead max bytes``
164 :Description: Set the maximum number of bytes that the client reads ahead for future read operations. Overridden by the ``client_readahead_max_periods`` setting.
166 :Default: ``0`` (unlimited)
168 ``client readahead max periods``
170 :Description: Set the number of file layout periods (object size * number of stripes) that the client reads ahead. Overrides the ``client_readahead_max_bytes`` setting.
174 ``client readahead min``
176 :Description: Set the minimum number bytes that the client reads ahead.
178 :Default: ``131072`` (128KB)
180 ``client reconnect stale``
182 :Description: Automatically reconnect stale session.
188 :Description: Set the snapshot directory name.
190 :Default: ``".snap"``
192 ``client tick interval``
194 :Description: Set the interval in seconds between capability renewal and other upkeep.
196 :Default: ``1.0`` (seconds)
198 ``client use random mds``
200 :Description: Choose random MDS for each request.
204 ``fuse default permissions``
206 :Description: When set to ``false``, ``ceph-fuse`` utility checks does its own permissions checking, instead of relying on the permissions enforcement in FUSE. Set to ``false`` together with the ``client acl type=posix_acl`` option to enable POSIX ACL.
212 :Description: Set the maximum number of bytes in a single write operation. Because the FUSE default is 128kbytes, SO fuse_max_write default set to 0(The default does not take effect)
216 ``fuse disable pagecache``
218 :Description: If set to ``true``, kernel page cache is disabled for ceph-fuse mount. Because when multiple clients read/write to a file at the same time, reader may get stale data from page cache. (Due to limitation of fuse, ceph-fuse can't disable page cache dynamically)
225 .. important:: These options are internal. They are listed here only to complete the list of options.
227 ``client debug getattr caps``
229 :Description: Check if the reply from the MDS contains required capabilities.
233 ``client debug inject tick delay``
235 :Description: Add artificial delay between client ticks.
239 ``client inject fixed oldest tid``
245 ``client inject release failure``
253 :Description: The path to the trace file for all file operations. The output is designed to be used by the Ceph `synthetic client <../../man/8/ceph-syn>`_.
255 :Default: ``""`` (disabled)