scheduler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2018 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

type Scheduler struct {
	common.NodeComponent // Base component
	// contains filtered or unexported fields
}

Scheduler is responsible for receiving local and remote requests for deploying containers running in the system. It takes a request for running a container and decides where to deploy it in conjunction with the Discovery module.

func NewScheduler

func NewScheduler(config *configuration.Configuration, internalDisc apiInternal.DiscoveryInternal,
	containersManager *containers.Manager, client external.Caravela) *Scheduler

func (*Scheduler) Launch

func (scheduler *Scheduler) Launch(fromBuyer *types.Node, offer *types.Offer,
	containerConfig *types.ContainerConfig) (*types.ContainerStatus, error)

Executed when a system's node wants to launch a container in this node.

func (*Scheduler) Start

func (scheduler *Scheduler) Start()

func (*Scheduler) Stop

func (scheduler *Scheduler) Stop()

func (*Scheduler) SubmitContainers

func (scheduler *Scheduler) SubmitContainers(containerImageKey string, portMappings []types.PortMapping, containerArgs []string,
	cpus int, ram int) (string, string, error)

Jump to

Keyboard shortcuts

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