Re: osd_heartbeat_grace read by MON and OSD?

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

 



On Wed, Jan 25, 2017 at 10:51 AM, Wido den Hollander <wido@xxxxxxxx> wrote:
> 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?

Yes -- we have a similar situation with mds_beacon_grace which is used
from both sides of the mon-mds code.  For now we have to live with the
fragility of needing these settings to be set uniformly across the
cluster to avoid issues (and in the long run we should be storing
config centrally).

John

>
> 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
--
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