sweeper

package
v4.2.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSweeperRunner

func NewSweeperRunner(logger lager.Logger,
	atcWorker atc.Worker,
	config beacon.Config,
) ifrit.Runner

NewSweeperRunner provides the ifrit runner that marks and sweeps the containers

Types

type Command

type Command struct {
	Logger       lager.Logger
	BeaconClient beacon.BeaconClient
	GCInterval   time.Duration
	GardenClient garden.Client
}

Command is the struct that holds the properties for the mark and sweep command

func (*Command) Run

func (cmd *Command) Run(signals <-chan os.Signal, ready chan<- struct{}) error

Run invokes the process of marking and sweeping containers First worker will call atc to collect list of containers to be removed and then worker will report its state of current containers for atc to remove containers in DB. This cycle is triggered every GCInterval sec

Jump to

Keyboard shortcuts

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