]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: Add section about MDS cache limits 19212/head
authorBarbora Ančincová <bancinco@redhat.com>
Tue, 28 Nov 2017 13:02:31 +0000 (14:02 +0100)
committerBarbora Ančincová <bancinco@redhat.com>
Wed, 29 Nov 2017 11:46:49 +0000 (12:46 +0100)
Signed-off-by: Bara Ancincova (bara@redhat.com)
doc/cephfs/cache-size-limits.rst [new file with mode: 0644]
doc/cephfs/index.rst

diff --git a/doc/cephfs/cache-size-limits.rst b/doc/cephfs/cache-size-limits.rst
new file mode 100644 (file)
index 0000000..4ea4144
--- /dev/null
@@ -0,0 +1,15 @@
+Understanding MDS Cache Size Limits
+===================================
+
+This section describes ways to limit MDS cache size.
+
+You can limit the size of the Metadata Server (MDS) cache by:
+
+* *A memory limit*: A new behavior introduced in the Luminous release. Use the `mds_cache_memory_limit` parameters. We recommend to use memory limits instead of inode count limits.
+* *Inode count*: Use the `mds_cache_size` parameter. By default, limiting the MDS cache by inode count is disabled.
+
+In addition, you can specify a cache reservation by using the `mds_cache_reservation` parameter for MDS operations. The cache reservation is limited as a percentage of the memory or inode limit and is set to 5% by default. The intent of this parameter is to have the MDS maintain an extra reserve of memory for its cache for new metadata operations to use. As a consequence, the MDS should in general operate below its memory limit because it will recall old state from clients in order to drop unused metadata in its cache.
+
+The `mds_cache_reservation` parameter replaces the `mds_health_cache_threshold` in all situations except when MDS nodes sends a health alert to the Monitors indicating the cache is too large. By default, `mds_health_cache_threshold` is 150% of the maximum cache size.
+
+Be aware that the cache limit is not a hard limit. Potential bugs in the CephFS client or MDS or misbehaving applications might cause the MDS to exceed its cache size. The  `mds_health_cache_threshold` configures the cluster health warning message so that operators can investigate why the MDS cannot shrink its cache.
index c63364fd5cb8a82cc55899d0ce009fb41dcae578..61f77f44aefc7467f7705c3d50f1636db141feb8 100644 (file)
@@ -84,6 +84,7 @@ authentication keyring.
 
     Deployment best practices <best-practices>
     Administrative commands <administration>
+    Understanding MDS Cache Size Limits <cache-size-limits>
     POSIX compatibility <posix>
     Experimental Features <experimental-features>
     CephFS Quotas <quota>