From 47bd7bf2f546279f51d7509a39a6caa8c38ced49 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 9 Dec 2023 16:50:51 -0500 Subject: [PATCH] Only run cluster-wide health checks on primary Avoids multiple coordinators trying to write updated cluster-wide fault events. Instead, they are now only written by the primary (or the incoming primary if still in a transition). --- health-daemon/pvchealthd/objects/MonitoringInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/health-daemon/pvchealthd/objects/MonitoringInstance.py b/health-daemon/pvchealthd/objects/MonitoringInstance.py index 7034620a..de2846c4 100644 --- a/health-daemon/pvchealthd/objects/MonitoringInstance.py +++ b/health-daemon/pvchealthd/objects/MonitoringInstance.py @@ -668,7 +668,7 @@ class MonitoringInstance(object): self.run_plugins(coordinator_state=coordinator_state) - if coordinator_state in ["primary", "secondary", "takeover", "relinquish"]: + if coordinator_state in ["primary", "takeover"]: self.run_faults(coordinator_state=coordinator_state) runtime_end = datetime.now()