On Sun, 21 May 2017, qi Shi wrote: > When i read the official documents,I found that mon would ping osds. > > The following is a description of the official documentation: > --------------------------------------------------------------------------------------------------------------------- > > OSD Membership and Status: Ceph OSD Daemons join a cluster and report > on their status. At the lowest level, the Ceph OSD Daemon status is up > or down reflecting whether or not it is running and able to service > Ceph Client requests. If a Ceph OSD Daemon is down and inthe Ceph > Storage Cluster, this status may indicate the failure of the Ceph OSD > Daemon. If a Ceph OSD Daemon is not running (e.g., it crashes), the > Ceph OSD Daemon cannot notify the Ceph Monitor that it is down. The > Ceph Monitor can ping a Ceph OSD Daemon periodically to ensure that it > is running. However, Ceph also empowers Ceph OSD Daemons to determine This isn't accurate. The OSDs periodically send messages to the mon (pg stats pre-luminous, and a new MOSDBeacon in luminous). If the mon doesn't see that message after a configurable period of time then it marks the OSD down. See OSDMonitor::prepare_beacon() in master. sage > if a neighboring OSD is down, to update the cluster map and to report > it to the Ceph monitor(s). This means that Ceph monitors can remain > light weight processes. SeeMonitoring OSDs and Heartbeats for > additional details. > ----------------------------------------------------------------------------------------------------------------------- > > Who can tell me which file in the source code, and which function, > which function to do mon ping osd? > -- > 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