]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/NVMeofGwMap: add delay to NVMEOF_GATEWAY_DELETING warning 61127/head
authorVallari Agrawal <vallari.agrawal@ibm.com>
Wed, 25 Dec 2024 05:01:21 +0000 (10:31 +0530)
committerVallari Agrawal <vallari.agrawal@ibm.com>
Tue, 7 Jan 2025 06:54:12 +0000 (12:24 +0530)
commit56cf5122d9755c5de198bd46f1670a8f20a0e3e2
tree607a9eadeb3389d5c649ccb4def4f46da3bc9b9d
parent7b33f7727e059ac2eb83ddee9440c446f1a201c0
mon/NVMeofGwMap: add delay to NVMEOF_GATEWAY_DELETING warning

Instead of immediately triggering, have this healthcheck trigger
after some time has elasped. This delay can be configured by
mon_nvmeofgw_delete_grace.

Track the time when gateways go into DELETING state in a new
member var (of NVMeofGwMon) 'gws_deleting_time'.

Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
src/mon/NVMeofGwMap.cc
src/mon/NVMeofGwMap.h
src/mon/NVMeofGwMon.h