strategy

package
v0.0.0-...-f9f83aa Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoResourcesAvailable = errors.New("no resources available to schedule container")
)

Functions

This section is empty.

Types

type BinPackingPlacementStrategy

type BinPackingPlacementStrategy struct {
	OvercommitRatio float64
}

func (*BinPackingPlacementStrategy) PlaceContainer

func (p *BinPackingPlacementStrategy) PlaceContainer(config *dockerclient.ContainerConfig, nodes []*cluster.Node) (*cluster.Node, error)

type PlacementStrategy

type PlacementStrategy interface {
	// Given a container configuration and a set of nodes, select the target
	// node where the container should be scheduled.
	PlaceContainer(config *dockerclient.ContainerConfig, nodes []*cluster.Node) (*cluster.Node, error)
}

type RandomPlacementStrategy

type RandomPlacementStrategy struct {
}

Randomly place the container into the cluster.

func (*RandomPlacementStrategy) PlaceContainer

func (p *RandomPlacementStrategy) PlaceContainer(config *dockerclient.ContainerConfig, nodes []*cluster.Node) (*cluster.Node, error)

Jump to

Keyboard shortcuts

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