Skip to content

Commit

Permalink
Merge pull request #25889 from pdvian/wip-37820-luminous
Browse files Browse the repository at this point in the history
luminous: mds: create heartbeat grace config option

Reviewed-by:  Venky Shankar <vshankar@redhat.com>
  • Loading branch information
yuriw committed Jan 11, 2019
2 parents 696a0a9 + 361a3d6 commit 1297582
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/common/options.cc
Expand Up @@ -6122,6 +6122,10 @@ std::vector<Option> get_mds_options() {
.set_default(15)
.set_description(""),

Option("mds_heartbeat_grace", Option::TYPE_FLOAT, Option::LEVEL_ADVANCED)
.set_default(15)
.set_description("tolerance in seconds for MDS internal heartbeat"),

Option("mds_enforce_unique_name", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
.set_default(true)
.set_description(""),
Expand Down
3 changes: 2 additions & 1 deletion src/mds/MDSRank.cc
Expand Up @@ -1205,7 +1205,8 @@ void MDSRank::heartbeat_reset()
// NB not enabling suicide grace, because the mon takes care of killing us
// (by blacklisting us) when we fail to send beacons, and it's simpler to
// only have one way of dying.
g_ceph_context->get_heartbeat_map()->reset_timeout(hb, g_conf->mds_beacon_grace, 0);
auto grace = g_conf->get_val<double>("mds_heartbeat_grace");
g_ceph_context->get_heartbeat_map()->reset_timeout(hb, grace, 0);
}

bool MDSRank::is_stale_message(Message *m) const
Expand Down

0 comments on commit 1297582

Please sign in to comment.