Skip to content

Commit 99df338

Browse files
authored
Final commit
* Implemented PM reviews from PR 3846 * Corrected title * Added line 60 * Added missing double quotes in line 136 * minor edit
1 parent 2110a99 commit 99df338

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

modules/rest-api/pages/rest-set-up-services-existing-nodes.adoc

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= Assigning Services on an Existing Node
1+
= Assigning Services to an Existing Node
22

33
:description: pass:q[Use the REST API to assign or remove services on an existing node in a cluster, and rebalance the cluster.]
44
:page-topic-type: reference
@@ -56,11 +56,11 @@ Where,
5656

5757
** `<list of nodes>` indicate the nodes on which the `<service>` must reside in after the rebalance operation is complete.
5858
The node names are separated by commas.
59-
+
60-
If a `<service>` is running on any node in the cluster that's not in this list, Couchbase Server removes that `<service>` during the rebalance operation.
61-
For more information, see xref:rest-api:rest-cluster-rebalance.adoc[Rebalancing the Cluster].
6259

63-
** For example, `-d topology[<service>]=otp_node1,otp_node2`.
60+
** For example, `-d topology[<service>]="otp_node1,otp_node2"`.
61+
62+
** To remove or exclude one of the above listed services from the cluster, do not list any nodes for that service.
63+
For example, `-d topology[<service>]=""`.
6464

6565
NOTE: The rebalance occurs even if no `<service>` is changed.
6666

@@ -121,8 +121,9 @@ You could reconfigure the services on the existing nodes to match the following:
121121
* 172.23.108.72 – Search, Query
122122
* 172.23.108.73 – Analytics
123123

124-
Because the Backup service is not in the topology list, it will be removed from the cluster.
125-
After the topology change and rebalance, two nodes (172.23.108.71 and 172.23.108.72) that previously had no services using the index disk storage path will now have services using it.
124+
After the topology change and rebalance, 2 nodes (172.23.108.71 and 172.23.108.72) that did not have any services using the index disk storage path will now have services using it.
125+
126+
Also, using the following command, you remove the Backup Service from the cluster by not listing any nodes in `-d topology[backup]=`.
126127

127128
To reconfigure the 5 nodes to the new topology, run the following command:
128129

@@ -132,6 +133,7 @@ curl -u Administrator:password -X POST 172.23.108.69:8091/controller/rebalance \
132133
133134
-d "topology[fts][email protected]" \
134135
136+
-d "topology[backup]=""" \
135137
-d "topology[cbas][email protected]"
136138
----
137139

@@ -147,4 +149,4 @@ curl -u Administrator:password -X POST 172.23.108.69:8091/controller/rebalance \
147149

148150
* For more information about assigning services to a new node, see xref:rest-api:rest-set-up-services.adoc[Assigning Services to a New Single Node].
149151

150-
* For more information about rebalancing, see xref:rest-api:rest-cluster-rebalance.adoc[Rebalancing the Cluster].
152+
* For more information about rebalancing, see xref:rest-api:rest-cluster-rebalance.adoc[Rebalancing the Cluster].

0 commit comments

Comments
 (0)