]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: trim 'N' log segments according to how many log segments are there 18783/head
authorYan, Zheng <zyan@redhat.com>
Mon, 30 Oct 2017 12:03:29 +0000 (20:03 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 7 Nov 2017 07:53:18 +0000 (15:53 +0800)
commitab103b9fe36ad0dd7e470c4c2cf701963cc8bf3c
tree93ac556d93773ce1e970f4fc8e5530b272cfaeed
parenta5899a57e4f077f4061fc2aa33a61377de7ac025
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>
(cherry picked from commit 7de37382ace36b6b724b07dcd58178137c49e6b8)
src/common/legacy_config_opts.h
src/common/options.cc
src/mds/MDLog.cc