dispatchcloud

package
v0.0.0-...-288f078 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0, Apache-2.0, CC-BY-SA-3.0 Imports: 36 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,
	"loopback": loopback.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) ([]arvados.InstanceType, error)

ChooseInstanceType returns the arvados.InstanceTypes eligible to run ctr, i.e., those that have enough RAM, VCPUs, etc., and are not too expensive according to cluster configuration.

The returned types are sorted with lower prices first.

The error is non-nil if and only if the returned slice is empty.

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 plus arv-mount block cache.

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