From: John Spray Date: Tue, 17 Oct 2017 22:06:07 +0000 (+0100) Subject: mon: tidy up mds_blacklist_interval X-Git-Tag: v12.2.3~72^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d8f9aec74259620bafcde7fa673eea52777d8348;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 (cherry picked from commit 0d68d3513e03cc2400facf421e08c8a92cb2886a) Conflicts: doc/cephfs/eviction.rst (trivial resolution of conflict resulting from 0e43f0f01cd800fee4cd800f1545405b449fa55b being merged to luminous) --- diff --git a/doc/cephfs/eviction.rst b/doc/cephfs/eviction.rst index f2f6778d102..1bab7a127e3 100644 --- a/doc/cephfs/eviction.rst +++ b/doc/cephfs/eviction.rst @@ -136,12 +136,6 @@ eviction command to each active daemon. When blacklisting is enabled (the default), sending an eviction 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. - .. _background_blacklisting_and_osd_epoch_barrier: diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 178284d4ff9..f8d5d5053d6 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -432,7 +432,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 unresponsive or not returning its caps 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 0469939ab73..d12df8a58ce 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1386,7 +1386,14 @@ std::vector