osd_heartbeat_grace read by MON and OSD?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Looking at the code I see that the MON (mon/OSDMonitor.cc) and OSD (osd/OSD.cc) use the configuration setting osd_heartbeat_grace.

The name *osd* suggest that it's only read by the OSDs, but according to the source it doesn't seem to be the case.

bool OSDMonitor::check_failure(utime_t now, int target_osd, failure_info_t& fi)
{
  ...
  utime_t orig_grace(g_conf->osd_heartbeat_grace, 0);
  ...
}

bool OSDMonitor::prepare_failure(MonOpRequestRef op)
{
  ...
  utime_t failed_since =
    m->get_recv_stamp() -
    utime_t(m->failed_for ? m->failed_for : g_conf->osd_heartbeat_grace, 0);
  ...
}

Before I submit a PR to update the docs, am I reading the code correctly?

Wido
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux