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).
This commit is contained in:
Joshua Boniface 2023-12-09 16:50:51 -05:00
parent b9fbfe2ed5
commit 47bd7bf2f5
1 changed files with 1 additions and 1 deletions

View File

@ -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()