]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: add watch ping timeout count in osd 56976/head
authoryite.gu <yitegu0@gmail.com>
Thu, 18 Apr 2024 07:51:11 +0000 (15:51 +0800)
committeryite.gu <yitegu0@gmail.com>
Fri, 19 Apr 2024 09:33:18 +0000 (17:33 +0800)
commit34b086e702f45a500b0d112c129fa890ef6c9f59
tree2ee8d9e6eae638fc5ef075adb7fc5c311a89fc9d
parent08d35a8d8529783882dd092c73c0b27be41c4d86
osd: add watch ping timeout count in osd

For example, rbd send a watch ping to the header object
every 5 seconds to keep watch, if the primary OSD is unable
to receive the watch ping of the header object due to rbd
network interruption, this means that rbd's I/O has already been
hang. This way, we can quickly detect disconnection rbds on the osd,
and reflected in metrics.

Signed-off-by: Yite Gu <yitegu0@gmail.com>
src/osd/PrimaryLogPG.cc
src/osd/osd_perf_counters.cc
src/osd/osd_perf_counters.h