SingleStore DB

add-leaf

Add a leaf node to the MemSQL cluster.

Usage

You can retrieve help for the command by typing <application> [command] --help in the command line.

Remarks

This command must be run from the same host that the master aggregator is currently running on.

If --availability-group is specified, memsqlctl will verify via the master aggregator that high availability is enabled. It will then run the query ADD LEAF user:password@host:port [INTO GROUP {1|2}] on the master aggregator.

This command is interactive unless you use either --yes or --json flag to override interactive behavior.

The memsqlctl add-leaf command is equivalent to the sdb-admin add-leaf command.

Output

The following is the standard output for the add-leaf command.

$ sudo memsqlctl add-leaf --host "172.17.0.8"
memsqlctl will perform the following actions on the local master aggregator on port 3306:
  · Run `ADD LEAF root:****@172.17.0.8:3306 INTO GROUP 1`

Would you like to continue? [y/N]: y
✓ Added leaf 172.17.0.8:3306 to cluster