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
Click to show internal directories.
Click to hide internal directories.