Package starcluster :: Package commands :: Module stop :: Class CmdStop
[hide private]
[frames] | no frames]

Class CmdStop

source code



stop [options] <cluster_tag> ...

Stop a running EBS-backed cluster

Example:

    $ starcluster stop mycluster

The above command will put all flat-rate EBS-backed nodes in 'mycluster'
into a 'stopped' state preserving the local disks. You can then use the
start command with the -x (--no-create) option to resume the cluster later
on without losing data on the local disks:

    $ starcluster start -x mycluster

This will 'start' all 'stopped' non-spot EBS-backed instances and
reconfigure the cluster.

In general, all nodes in the cluster must be 'stoppable' meaning all nodes
are backed by flat-rate EBS-backed instances. If any 'unstoppable' nodes
are found an error is raised. A node is 'unstoppable' if it is backed by
either a spot or S3-backed instance.

However, if the cluster contains a mix of 'stoppable' and 'unstoppable'
nodes you can stop all stoppable nodes and terminate any unstoppable nodes
using the --terminate-unstoppable (-t) option:

    $ starcluster stop --terminate-unstoppable mycluster

This will stop all nodes that can be stopped and terminate the rest.

Instance Methods [hide private]
 
addopts(self, parser) source code
 
execute(self, args) source code

Inherited from completers.ClusterCompleter (private): _completer

Inherited from base.CmdBase: cancel_command, catch_ctrl_c, warn_experimental

Inherited from base.CmdBase (private): _build_dict, _positive_int

Inherited from optcomplete.CmdComplete: autocomplete

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  names = ['stop']

Inherited from base.CmdBase: gopts, gparser, opts, parser, subcmds_map

Inherited from base.CmdBase (private): _cfg, _cm, _ec2, _nm, _s3

Properties [hide private]

Inherited from completers.Completer: completer

Inherited from base.CmdBase: cfg, cluster_manager, cm, comp_words, ec2, goptions_dict, log, nm, node_manager, options_dict, s3, specified_options_dict

Inherited from object: __class__

Method Details [hide private]

addopts(self, parser)

source code 
Overrides: base.CmdBase.addopts