From: Patrick Donnelly Date: Sat, 19 Jan 2019 00:18:59 +0000 (-0800) Subject: mds: add throttle for trimming MDCache X-Git-Tag: v13.2.7~24^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=47db75951217a313a3f58ac68e7ca0eb61aece6b;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 (cherry picked from commit 7bf2f31) Conflicts: PendingReleaseNotes src/mds/MDCache.cc src/mds/MDCache.h --- diff --git a/PendingReleaseNotes b/PendingReleaseNotes index 0a0c6dc0c7d9..9e0b7f12d517 100644 --- a/PendingReleaseNotes +++ b/PendingReleaseNotes @@ -1,6 +1,10 @@ 13.2.7 ====== +* 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. + * The `cache drop` admin socket command has been removed. The `ceph tell mds.X cache drop` remains. diff --git a/src/common/options.cc b/src/common/options.cc index 2dc986f4153b..985645159bb3 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -6729,6 +6729,14 @@ std::vector