jettison

package module
v0.0.0-...-572c6bb Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

README

jettison

destroys all ephemeral containers on a garden server

Fuel Dump

by paperghost

about

Shutting a Concourse worker down requires the containers to be destroyed before removing the old versions of the RootFSs so that the files are not in use when BOSH tries to remove them. The only containers that are likely to last long enough to be in this state (over two BOSH deploys) are check containers.

Luckily, check containers can be destroyed at any time and spun up again on another machine to resume. In Concourse this concept is referred to as ephemeral. When Concourse creates an ephemeral container it is marked with a Garden property. Jettison finds containers with this property and destroys them.

usage

To destroy all ephemeral containers on a Garden server, just run:

$ jettison -gardenAddr 10.0.0.100:7777

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Drainer

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

func NewDrainer

func NewDrainer(
	logger lager.Logger,
	client garden.Client,
) *Drainer

func (*Drainer) Drain

func (d *Drainer) Drain() error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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