provider

package
v0.0.0-...-5aa14c8 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2016 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// spread the srevice to as much instances as possible
	SpreadService = "spread"

	// pack service to a node as much as posible
	BinpackService = "binpack"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoScaling

type AutoScaling interface {
	// Set expectations of the service
	SetExpectation(exp ServiceExpectation)

	// Scale the cluster size UP
	Scaleup(service string, n uint) bool

	// Scale the cluster size DOWN
	Scalein(service string, n uint, policy TerminatePolicy) bool
}

type ClusterOptions

type ClusterOptions struct {
	// Name of the cluster
	Name string

	// Min, Max of cluster size and current size
	Min   uint
	Max   uint
	Count uint

	// Launch Configuration resource
	LaunchConfig string
}

type ServiceExpectation

type ServiceExpectation struct {
	// Name of the service
	Name string

	// Min, Max of cluster size and current size
	Min   uint
	Max   uint
	Count uint

	// Service scaling strategy
	// @See SpreadService, BinpackService
	Strategy string
	// contains filtered or unexported fields
}

type TerminatePolicy

type TerminatePolicy struct {
}

Jump to

Keyboard shortcuts

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