]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: trim cache regularly for standby-replay 40486/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 30 Mar 2021 03:09:30 +0000 (20:09 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 6 Apr 2021 14:10:55 +0000 (07:10 -0700)
commit19293d9b9d19c32af4de655cd59e206056b2417d
treeb4528c06a3fd808625fe40aae789635db785f5ca
parent5a9d6c080d77c7e3644b02cab4f8c91900f4fe8f
mds: trim cache regularly for standby-replay

This change is slightly awkward because standby-replay MDS do not do all
the kinds of upkeep a normal active MDS does. In particular, it is not
going to recall client state from clients.

This diff also merges the extra recall_client_state in
MDCache::check_memory_usage into its only caller (the upkeep thread)
where it was also doing a recall. That's just a matter of merging the
recall flags. This has the added benefit of making
MDCache::check_memory_usage callable for all MDS daemons regardless of
state.

Fixes: https://tracker.ceph.com/issues/50048
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/MDSRank.cc
src/mds/MDSRank.h