Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.
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 ¶
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.
Source Files ¶
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. |