monitor

package
v0.0.0-...-ee3d319 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProvisioningCutoff is the threshold to consider as too long for a host to take provisioning
	ProvisioningCutoff = 25 * time.Minute

	// UnreachableCutoff is the threshold to wait for an unreachable host to become marked
	// as reachable again before giving up and terminating it.
	UnreachableCutoff = 5 * time.Minute

	// MaxTimeNextPayment is the amount of time we wait to have left before marking a host as idle
	MaxTimeTilNextPayment = 5 * time.Minute
)
View Source
const (
	// monitor "tracks and cleans up expired hosts and tasks"
	RunnerName = "monitor"
)

Variables

This section is empty.

Functions

func RunAllMonitoring

func RunAllMonitoring(ctx context.Context, 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 (hm *HostMonitor) CleanupHosts(ctx context.Context, 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

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) Name

func (r *Runner) Name() string

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, config *evergreen.Settings) error

Jump to

Keyboard shortcuts

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