Adding a Node to a Cluster
This article describes how to add a new node to an SMRTC cluster.
First Node and Joining Nodes
The first node forms a cluster by itself and does not wait for other nodes. At startup, a joining node connects to an existing running cluster and retrieves metadata from it.
This behavior is controlled by the parameters in the cluster section of the installer answer file:
IS_JOIN-nfor the first node andyfor a joining nodeEXISTING_NODES- comma-separated addresses of existing nodes inip:9910format. Use the inter-node transport port, not public port 9919NODE_IS_MASTER- specifies whether the node is a voting member of the metadata quorumCLUSTER_NAME- cluster name, which must be the same on all nodes
Deployment Sequence
Deploy the first node, and then deploy the joining nodes. At startup, a joining node queries the existing nodes and waits to receive the cluster configuration.
Adding a Second Node
- On the first node, copy the certificate authority certificate and key to the second node
- On the second node, run
sudo bash setup.sh install:- at the cluster settings step, enter
yto join an existing cluster - specify the first node as an existing node using an address in the
<first-node-ip>:9910format - specify the same cluster name (
CLUSTER_NAME) as on the first node - at the TLS settings step, provide the copied certificate authority certificate and key
- at the cluster settings step, enter