dispatchcloud

package
v0.0.0-...-c92af4d Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: AGPL-3.0, Apache-2.0, CC-BY-SA-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command cmd.Handler = service.Command(arvados.ServiceNameDispatchCloud, newHandler)
View Source
var Drivers = map[string]cloud.Driver{
	"azure": azure.Driver,
	"ec2":   ec2.Driver,
}

Drivers is a map of available cloud drivers. Clusters.*.Containers.CloudVMs.Driver configuration values correspond to keys in this map.

View Source
var ErrInstanceTypesNotConfigured = errors.New("site configuration does not list any instance types")

Functions

func ChooseInstanceType

func ChooseInstanceType(cc *arvados.Cluster, ctr *arvados.Container) (best arvados.InstanceType, err error)

ChooseInstanceType returns the cheapest available arvados.InstanceType big enough to run ctr.

func EstimateScratchSpace

func EstimateScratchSpace(ctr *arvados.Container) (needScratch int64)

EstimateScratchSpace estimates how much available disk space (in bytes) is needed to run the container by summing the capacity requested by 'tmp' mounts plus disk space required to load the Docker image.

Types

type ConstraintsNotSatisfiableError

type ConstraintsNotSatisfiableError struct {
	AvailableTypes []arvados.InstanceType
	// contains filtered or unexported fields
}

ConstraintsNotSatisfiableError includes a list of available instance types to be reported back to the user.

Directories

Path Synopsis
Package scheduler uses a resizable worker pool to execute containers in priority order.
Package scheduler uses a resizable worker pool to execute containers in priority order.
Package sshexecutor provides an implementation of pool.Executor using a long-lived multiplexed SSH session.
Package sshexecutor provides an implementation of pool.Executor using a long-lived multiplexed SSH session.
Package test provides fakes and other tools for testing cloud drivers and other dispatcher modules.
Package test provides fakes and other tools for testing cloud drivers and other dispatcher modules.

Jump to

Keyboard shortcuts

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