healthcheck

package
v0.0.0-...-28e5ed5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	ConsecutiveFailures uint32                  // Consecutive failures count
	ContainerID         string                  // Container ID to check
	Containerizer       container.Containerizer // Containerizer used by the executor
	Done                chan struct{}           // Done chan is triggered when the checker has finished its work (task is unhealthy)
	Exited              chan struct{}           // Exited chan is triggered when the checker has freed its resources
	Healthy             chan bool               // Result chan
	Pid                 int                     // Pid in which we enter namespace
	TaskInfo            *mesos.TaskInfo         // The info of the checked task
	Quit                chan struct{}           // Quit chan is triggered by the core to tell the checker to stop its work
}

Checker is a health checker in charge to run check and say it task is healthy or unhealthy

func NewChecker

func NewChecker(pid int, c container.Containerizer, containerID string, taskInfo *mesos.TaskInfo) *Checker

NewChecker instanciate a health checker with given health check

func (*Checker) Run

func (c *Checker) Run()

Run starts to run health check

Jump to

Keyboard shortcuts

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