remotecheck

package
v0.0.0-...-08a0563 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2017 License: GPL-3.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL