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:
parent
b9fbfe2ed5
commit
47bd7bf2f5
|
@ -668,7 +668,7 @@ class MonitoringInstance(object):
|
||||||
|
|
||||||
self.run_plugins(coordinator_state=coordinator_state)
|
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)
|
self.run_faults(coordinator_state=coordinator_state)
|
||||||
|
|
||||||
runtime_end = datetime.now()
|
runtime_end = datetime.now()
|
||||||
|
|
Loading…
Reference in New Issue