Package starcluster :: Package commands :: Module addnode :: Class CmdAddNode
[hide private]
[frames] | no frames]

Class CmdAddNode

source code



addnode [options] <cluster_tag>

Add a node to a running cluster

Examples:

    $ starcluster addnode mycluster

This will launch a new node and add it to mycluster. The node's alias will
be autogenerated based on the existing node aliases in the cluster.

If you want to provide your own alias for the node use the -a option:

    $ starcluster addnode -a mynode mycluster

This will add a new node called 'mynode' to mycluster.

You can also add multiple nodes using the -n option:

    $ starcluster addnode -n 3 mycluster

The above example will add three new nodes to mycluster with autogenerated
aliases. If you'd rather provide your own aliases:

    $ starcluster addnode -a mynode1,mynode2,mynode3 mycluster

This will add three new nodes to mycluster named mynode1, mynode2, and
mynode3.

If you've previously attempted to add a node and it failed due to a plugin
error or other bug or if you used the 'removenode' command with the '-k'
option and wish to re-add the node to the cluster without launching a new
instance you can use the '-x' option:

    $ starcluster addnode -x -a mynode1 mycluster

NOTE: The -x option requires the -a option

This will add 'mynode1' to mycluster using the existing instance. If no
instance exists with the alias specified by the '-a' option an error is
reported. You can also do this for multiple nodes:

    $ starcluster addnode -x -a mynode1,mynode2,mynode3 mycluster

Instance Methods [hide private]
 
addopts(self, parser) source code
 
_get_duplicate(self, lst) 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 = ['addnode', 'an']
  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