toil.provisioners¶
Submodules¶
Attributes¶
Exceptions¶
Indicates that the specified cluster does not exist. |
|
Indicates that a valid zone could not be found. |
|
Indicates that a provisioner does not support a given cluster type. |
|
Indicates that a provisioner does not support making a given type of cluster with a given architecture. |
Functions¶
|
Find and instantiate the appropriate provisioner instance to make clusters in the given cloud. |
|
|
|
Parse a specification for zero or more node types. |
|
Raises if an invalid nodeType is specified for aws or gce. |
Package Contents¶
- toil.provisioners.logger¶
- toil.provisioners.cluster_factory(provisioner, clusterName=None, clusterType='mesos', zone=None, nodeStorage=50, nodeStorageOverrides=None, sseKey=None, enable_fuse=False)[source]¶
Find and instantiate the appropriate provisioner instance to make clusters in the given cloud.
Raises ClusterTypeNotSupportedException if the given provisioner does not implement clusters of the given type.
- Parameters:
- Returns:
A cluster object for the the cloud type.
- Return type:
Union[aws.awsProvisioner.AWSProvisioner, gceProvisioner.GCEProvisioner]
- toil.provisioners.add_provisioner_options(parser)[source]¶
- Parameters:
parser (argparse.ArgumentParser)
- Return type:
None
- toil.provisioners.parse_node_types(node_type_specs)[source]¶
Parse a specification for zero or more node types.
Takes a comma-separated list of node types. Each node type is a slash-separated list of at least one instance type name (like ‘m5a.large’ for AWS), and an optional bid in dollars after a colon.
Raises ValueError if a node type cannot be parsed.
Inputs should look something like this:
>>> parse_node_types('c5.4xlarge/c5a.4xlarge:0.42,t2.large') [({'c5.4xlarge', 'c5a.4xlarge'}, 0.42), ({'t2.large'}, None)]
- toil.provisioners.check_valid_node_types(provisioner, node_types)[source]¶
Raises if an invalid nodeType is specified for aws or gce.
- exception toil.provisioners.NoSuchClusterException(cluster_name)[source]¶
Bases:
Exception
Indicates that the specified cluster does not exist.
- Parameters:
cluster_name (str)
- exception toil.provisioners.NoSuchZoneException[source]¶
Bases:
Exception
Indicates that a valid zone could not be found.
- exception toil.provisioners.ClusterTypeNotSupportedException(provisioner_class, cluster_type)[source]¶
Bases:
Exception
Indicates that a provisioner does not support a given cluster type.