From: Patrick Donnelly Date: Sat, 19 Jan 2019 00:18:59 +0000 (-0800) Subject: mds: add throttle for trimming MDCache X-Git-Tag: v14.1.0~240^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7bf2f31abf069b9bafc52bc1478292bb8a6c71b8;p=ceph.git mds: add throttle for trimming MDCache This is necessary when the MDS cache size decreases by a significant amount. For example, when stopping a large MDS or when the operator makes a large cache size reduction. Fixes: http://tracker.ceph.com/issues/37723 Signed-off-by: Patrick Donnelly --- diff --git a/PendingReleaseNotes b/PendingReleaseNotes index 166dfaabd4bf..61424bc62f43 100644 --- a/PendingReleaseNotes +++ b/PendingReleaseNotes @@ -165,6 +165,10 @@ respectively. This is to clarify that these warnings are related to pg scrubbing and are a ratio of the related interval. These options are now enabled by default. +* The MDS cache trimming is now throttled. Dropping the MDS cache + via the `ceph tell mds. cache drop` command or large reductions in the + cache size will no longer cause service unavailability. + >=13.1.0 -------- diff --git a/src/common/options.cc b/src/common/options.cc index d3b57a7ef811..8d03bbc5c250 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -7179,6 +7179,14 @@ std::vector