You add a new node with the at the RESTful endpoint
host:port/controller/addNode. You will
need to provide an administrative username and password as
parameters:
shell> curl -u Administrator:password \ 10.2.2.60:8091/controller/addNode \ -d "hostname=10.2.2.64&user=Administrator&password=password"
Here we create a request to add a new node to the cluster at
10.2.2.60:8091 by using method,
controller/addNode and by providing the
IP address for the new node as well as credentials. If
successful, Couchbase Server will respond:
Status Code 200 OK {"otpNode":"ns_1@10.4.2.6"}