From: John Spray Date: Tue, 17 Oct 2017 22:06:07 +0000 (+0100) Subject: mon: tidy up mds_blacklist_interval X-Git-Tag: v13.0.1~439^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0d68d3513e03cc2400facf421e08c8a92cb2886a;p=ceph.git mon: tidy up mds_blacklist_interval Remove the misleading reference to this from the client eviction page, it was never the right option to mention there (my mistake). Demote the option from LEVEL_ADVANCED to LEVEL_DEV as it is hard to imagine a good reason for the user to change it. Set a hard minimum of one hour, to make it harder to corrupt` a system by setting it close to zero. Remove the legacy definition of the field while we're at it. Fixes: http://tracker.ceph.com/issues/21821 Signed-off-by: John Spray --- diff --git a/doc/cephfs/eviction.rst b/doc/cephfs/eviction.rst index e1400a1cec2e..3c130b0f596c 100644 --- a/doc/cephfs/eviction.rst +++ b/doc/cephfs/eviction.rst @@ -136,10 +136,3 @@ eviction command to each active daemon. When blacklisting is enabled (the default), sending an eviction to command to just a single MDS is sufficient, because the blacklist propagates it to the others. -Advanced options -================ - -``mds_blacklist_interval`` - this setting controls how many seconds -entries will remain in the blacklist for. - - diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index c9429134ba1e..57eea6c7cfdf 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -433,7 +433,6 @@ OPTION(mds_decay_halflife, OPT_FLOAT) OPTION(mds_beacon_interval, OPT_FLOAT) OPTION(mds_beacon_grace, OPT_FLOAT) OPTION(mds_enforce_unique_name, OPT_BOOL) -OPTION(mds_blacklist_interval, OPT_FLOAT) // how long to blacklist failed nodes OPTION(mds_session_timeout, OPT_FLOAT) // cap bits and leases time out if client idle OPTION(mds_session_blacklist_on_timeout, OPT_BOOL) // whether to blacklist clients whose sessions are dropped due to timeout diff --git a/src/common/options.cc b/src/common/options.cc index 5b8a4da68172..62c0723143de 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1365,7 +1365,14 @@ std::vector