monitor

package
v0.0.0-...-900fa13 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RunnerName  = "monitor"
	Description = "track and clean up expired hosts and tasks"
)
View Source
const (
	// reasons for cleaning up a task
	HeartbeatTimeout = "task heartbeat timed out"
)
View Source
const (
	// the threshold to consider as too long for a host to take provisioning
	ProvisioningCutoff = 35 * time.Minute
)
View Source
const (
	// how long to wait in between reachability checks
	ReachabilityCheckInterval = 10 * time.Minute
)

Variables

View Source
var (
	// threshold for a task's heartbeat to time out
	HeartbeatTimeoutThreshold = 7 * time.Minute
)

Functions

func RunAllMonitoring

func RunAllMonitoring(settings *evergreen.Settings) error

run all monitoring functions

Types

type HostMonitor

type HostMonitor struct {
	// contains filtered or unexported fields
}

responsible for running regular monitoring of hosts

func (*HostMonitor) CleanupHosts

func (self *HostMonitor) CleanupHosts(distros []distro.Distro, settings *evergreen.Settings) []error

run through the list of host flagging functions, finding all hosts that need to be terminated and terminating them

func (*HostMonitor) RunMonitoringChecks

func (self *HostMonitor) RunMonitoringChecks(settings *evergreen.Settings) []error

run through the list of host monitoring functions. returns any errors that occur while running the monitoring functions

type Notifier

type Notifier struct {
	// contains filtered or unexported fields
}

func (*Notifier) Notify

func (self *Notifier) Notify(settings *evergreen.Settings) []error

create and send any notifications that need to be sent

type Runner

type Runner struct{}

func (*Runner) Description

func (r *Runner) Description() string

func (*Runner) Name

func (r *Runner) Name() string

func (*Runner) Run

func (r *Runner) Run(config *evergreen.Settings) error

type TaskMonitor

type TaskMonitor struct {
	// contains filtered or unexported fields
}

responsible for cleaning up any tasks that need to be stopped

func (*TaskMonitor) CleanupTasks

func (tm *TaskMonitor) CleanupTasks(projects map[string]model.Project) []error

run through the list of task flagging functions, finding all tasks that need to be cleaned up and taking appropriate action. takes in a map of project name -> project info

Jump to

Keyboard shortcuts

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