Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAssignedChecks ¶
func GetAssignedChecks(conf config.Configuration) ([]model.CheckStateDetail, error)
GetAssignedChecks gathers the list of checks currently assigned to this coordinator, excluding any covered by an active blackout period.
func UpdateCheckAssignments ¶
func UpdateCheckAssignments(conf config.Configuration) error
UpdateCheckAssignments assigns a Coordinator as the owner of every applicable combination of remote check and subject. It ensures a CheckState exists for each applicable pairing, and assigns them while attempting to balance load accross coordinators. Some assigned checks may be reassigned if the current owner is known to be down; if the current owner has not executed the check in more than twice its interval; or if there is a significant imbalance, for example when a new coordinator comes online.
func UpdateRemoteChecks ¶
func UpdateRemoteChecks(conf config.Configuration, quit utils.SentinelChannel)
UpdateRemoteChecks starts a loop continuously updating remote check assignments.
Types ¶
This section is empty.