From: David Zafman Date: Wed, 26 Jun 2019 02:59:06 +0000 (+0000) Subject: osd mon: Track heartbeat ping times and report health warning X-Git-Tag: v13.2.7~26^2~21 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=db84d9ea8f3d1d46ba4cc3116aea052e8554261d;p=ceph.git osd mon: Track heartbeat ping times and report health warning Fixes: http://tracker.ceph.com/issues/40640 Signed-off-by: David Zafman (cherry picked from commit 66d44e7f911a57100d650ad7df9445f88ec70140) Conflicts: src/common/options.cc (trivial) src/mon/PGMap.cc (trivial) src/osd/OSD.cc (trivial) src/osd/OSD.h (trivial) src/osd/osd_types.cc (encode version difference) src/osd/osd_types.h (osd_stat_t location in file changed) src/mon/PGMap.cc manually get rid of extra argument to checks->add src/osd/OSD.cc rename ping_stamp to stamp for backport --- diff --git a/doc/rados/configuration/mon-osd-interaction.rst b/doc/rados/configuration/mon-osd-interaction.rst index e2c247714814..42be922fec0b 100644 --- a/doc/rados/configuration/mon-osd-interaction.rst +++ b/doc/rados/configuration/mon-osd-interaction.rst @@ -24,10 +24,8 @@ monitoring the Ceph Storage Cluster. OSDs Check Heartbeats ===================== -Each Ceph OSD Daemon checks the heartbeat of other Ceph OSD Daemons every 6 -seconds. You can change the heartbeat interval by adding an ``osd heartbeat -interval`` setting under the ``[osd]`` section of your Ceph configuration file, -or by setting the value at runtime. If a neighboring Ceph OSD Daemon doesn't +Each Ceph OSD Daemon checks the heartbeat of other Ceph OSD Daemons at random +intervals less than every 6 seconds. If a neighboring Ceph OSD Daemon doesn't show a heartbeat within a 20 second grace period, the Ceph OSD Daemon may consider the neighboring Ceph OSD Daemon ``down`` and report it back to a Ceph Monitor, which will update the Ceph Cluster Map. You may change this grace diff --git a/src/common/options.cc b/src/common/options.cc index 70af216ba13b..8f32a7414990 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1468,6 +1468,11 @@ std::vector