]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: trim 'N' log segments according to how many log segments are there 18624/head
authorYan, Zheng <zyan@redhat.com>
Mon, 30 Oct 2017 12:03:29 +0000 (20:03 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 1 Nov 2017 02:59:48 +0000 (10:59 +0800)
commit7de37382ace36b6b724b07dcd58178137c49e6b8
tree41e550af77f9a4e81f0772e69536ac30e3fdf69f
parent51d0dbe315b9f293deac5cf5554e2dd8ad563750
mds: trim 'N' log segments according to how many log segments are there

Config 'mds_log_max_expiring' is 20 by default. It means that at most
20 log segments get trimmed in each tick. For busy cluster, this can
cause mds behind on trimming log segments.

Fixes: fixes: http://tracker.ceph.com/issues/21975
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/common/legacy_config_opts.h
src/common/options.cc
src/mds/MDLog.cc