minunitsworker

package
v0.0.0-...-a0d7459 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMinUnitsWorker

func NewMinUnitsWorker(st *state.State) worker.Worker

NewMinUnitsWorker returns a Worker that runs service.EnsureMinUnits() if the number of alive units belonging to a service decreases, or if the minimum required number of units for a service is increased.

Types

type MinUnitsWorker

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

MinUnitsWorker ensures the minimum number of units for applications is respected.

func (*MinUnitsWorker) Handle

func (mu *MinUnitsWorker) Handle(serviceNames []string) error

func (*MinUnitsWorker) SetUp

func (mu *MinUnitsWorker) SetUp() (state.StringsWatcher, error)

func (*MinUnitsWorker) TearDown

func (mu *MinUnitsWorker) TearDown() error

Jump to

Keyboard shortcuts

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