Defines the contract for a cloud provider to proper function with elasticluster.
Retrieves the private and public ip addresses for a given instance.
| Returns: | tuple (ip_private, ip_public) |
|---|
Checks if the instance is up and running.
| Parameters: | instance_id (str) – instance identifier |
|---|---|
| Returns: | bool - True if running, False otherwise |
Starts a new instance on the cloud using the given properties. Multiple instances might be started in different threads at the same time. The implementation should handle any problems regarding this itself.
| Parameters: |
|
|---|---|
| Returns: | str - instance id of the started instance |
TODO: define...
Cleanup any temporary file or directory created during setup. This method is called every time a cluster is stopped.
| Returns: | None |
|---|
Configures all nodes of a cluster to function in respect to the given configuration.
This method must be idempotent, i.e. it should always be safe calling it multiple times..
| Parameters: | cluster (elasticluster.cluster.Cluster) – cluster to configure |
|---|---|
| Returns: | True if the cluster is correctly configured, even if the method didn’t actually do anything. False if the cluster is not configured. |