addNode

Syntax

addNode(host, port, alias, [saveConfig=true])

Arguments

host is a string indicating the IP address of the new node.

port is a positive integer indicating the port number of the new node.

alias is a string indicating the alias of the new node.

saveConfig is a Boolean value indicating whether to save the information of the node in the configuration file cluster.nodes when adding the node. The default value is true.

Details

Add a new node to a cluster. It will not start the new node. You can start the new node in the cluster management web interface or in the command line.

Please note that you need to deploy an agent node before adding a node on a new machine.

Examples

$ addNode("192.168.1.103",8900,"node1");