org.gridgain.visor.commands.start

VisorStartCommand

class VisorStartCommand extends AnyRef

Overview

Contains Visor command start implementation.

Help

+-----------------------------------------------------+
| start | Starts one or more nodes on remote host(s). |
|       | Uses SSH protocol to execute commands.      |
+-----------------------------------------------------+
Specification
start "-f= {-m=} {-r}"
start "-h= {-p=} {-u=} {-pw=} {-k=}
    {-n=} {-g=} {-c=} {-s=} {-m=} {-r}"
Arguments
-f=<path>
    Path to INI file that contains topology specification.
-h=<hostname>
    Hostname where to start nodes.

    Can define several hosts if their IPs are sequential.
    Example of range is 192.168.1.100~150,
    which means all IPs from 192.168.1.100 to 192.168.1.150 inclusively.
-p=<num>
    Port number (default is 22).
-u=<username>
    Username (if not defined, current local username will be used).
-pw=<password>
    Password (if not defined, private key file must be defined).
-k=<path>
    Path to private key file. Define if key authentication is used.
-n=<num>
    Expected number of nodes on the host.
    If some nodes are started already, then only remaining nodes will be started.
    If current count of nodes is equal to this number and '-r' flag is not set, then nothing will happen.
-g=<path>
    Path to GridGain installation folder.
    If not defined, GRIDGAIN_HOME environment variable must be set on remote hosts.
-c=<path>
    Path to configuration file (relative to GridGain home).
    If not provided, default GridGain configuration is used.
-s=<path>
    Path to start script (relative to GridGain home).
    Default is "bin/ggstart.sh" for Unix or
    "bin\ggstart.bat" for Windows.
-m=<num>
    Defines maximum number of nodes that can be started in parallel on one host.
    This actually means number of parallel SSH connections to each SSH server.
    Default is 5.
-t=<num>
    Defines connection timeout in milliseconds.
    Default is 2000.
-r
    Indicates that existing nodes on the host will be restarted.
    By default, if flag is not present, existing nodes will be left as is.
Examples
start "-h=10.1.1.10 -u=uname -pw=passwd -n=3"
    Starts three nodes with default configuration (password authentication).
start "-h=192.168.1.100~104 -u=uname -k=/home/uname/.ssh/is_rsa -n=5"
    Starts 25 nodes on 5 hosts (5 nodes per host) with default configuration (key-based authentication).
start "-f=start-nodes.ini -r"
    Starts topology defined in 'start-nodes.ini' file. Existing nodes are stopped.
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. VisorStartCommand
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VisorStartCommand()

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  15. def start(args: String): Unit

    Starts or restart one or more nodes on remote host.

    Command

    Starts or restart one or more nodes on remote host. Uses SSH protocol to execute commands.

    Examples

    <ex>start "-h=uname:passwd@host#3"</ex> Starts three nodes with default configuration (password authentication).

    <ex>start "-h=uname@host#3 -k=ssh-key.pem"</ex> Starts three nodes with default configuration (key authentication).

    <ex>start "-f=hosts.txt -c=config/spring.xml"</ex> Reads hosts.txt file and starts nodes with provided configuration.

    args

    Command arguments.

  16. def start(): Unit

    Catch point for missing arguments case.

  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  18. def toString(): String

    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped