Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 2.0
Community Wiki and Resources
Download Couchbase Server 2.0
Couchbase Developer Guide 2.0
Client Libraries
Couchbase Server Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
8.7 Managing Clusters
Chapter Sections
Chapters

8.7.2. Adding a Node to a Cluster

This is a REST request made to a Couchbase cluster to add a given node to the cluster. You add a new node with the at the RESTful endpoint server_ip: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 the cluster at 10.2.2.60:8091 to add a given node by using method, controller/addNode and by providing the IP address for the node as well as credentials. If successful, Couchbase Server will respond:

JSON
HTTP/1.1 200 OK
{"otpNode":"ns_1@10.4.2.6"}