Package starcluster :: Package commands :: Module removenode :: Class CmdRemoveNode
[hide private]
[frames] | no frames]

Class CmdRemoveNode

source code



removenode [options] <cluster_tag> <node> [<node> ...]

Terminate one or more nodes in the cluster

Examples:

    $ starcluster removenode mycluster node003

This will remove node003 from mycluster and terminate the node.

You can also specify multiple nodes to remove and terminate one after
another:

    $ starcluster removenode mycluster node001 node002 node003

If you'd rather not terminate the node(s) after removing from the cluster,
use the -k option:

    $ starcluster removenode -k mycluster node001 node002 node003

This will remove the nodes from the cluster but leave the instances
running. This can be useful, for example, when testing on_add_node methods
in a StarCluster plugin.

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 = ['removenode', 'rn']
  tag = None
hash(x)

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