shard_services{*this, whoami, *cluster_msgr, *public_msgr, *monc, *mgrc, *store},
heartbeat{new Heartbeat{whoami, shard_services, *monc, hb_front_msgr, hb_back_msgr}},
// do this in background
- heartbeat_timer{[this] { update_heartbeat_peers(); }},
+ tick_timer{[this] { update_heartbeat_peers(); }},
asok{seastar::make_lw_shared<crimson::admin::AdminSocket>()},
osdmap_gate("OSD::osdmap_gate", std::make_optional(std::ref(shard_services)))
{
state.set_active();
beacon_timer.arm_periodic(
std::chrono::seconds(local_conf()->osd_beacon_report_interval));
- heartbeat_timer.arm_periodic(
+ tick_timer.arm_periodic(
std::chrono::seconds(TICK_INTERVAL));
}
} else if (!osdmap->is_up(whoami)) {
seastar::future<> OSD::restart()
{
beacon_timer.cancel();
- heartbeat_timer.cancel();
+ tick_timer.cancel();
up_epoch = 0;
bind_epoch = osdmap->get_epoch();
// TODO: promote to shutdown if being marked down for multiple times
crimson::osd::ShardServices shard_services;
std::unique_ptr<Heartbeat> heartbeat;
- seastar::timer<seastar::lowres_clock> heartbeat_timer;
+ seastar::timer<seastar::lowres_clock> tick_timer;
// admin-socket
seastar::lw_shared_ptr<crimson::admin::AdminSocket> asok;