wohali commented on a change in pull request #219: Fix _cluster_setup api |
couchdb node name changes | verify cluster setup
URL:
https://github.com/apache/couchdb-documentation/pull/219#discussion_r173536538
##########
File path: src/cluster/setup.rst
##########
@@ -227,6 +230,39 @@ following command to complete the setup and add the
missing databases:
curl -X POST -H "Content-Type: application/json"
http://admin:[email protected]:5984/_cluster_setup -d '{"action":
"finish_cluster"}'
+Verify install:
+
+.. code-block:: bash
+
+ curl http://admin:[email protected]:5984/_cluster_setup
+
+Response:
+
+.. code-block:: bash
+
+ {"state":"cluster_finished"}
+
+Verify cluster nodes:
+
+.. code-block:: bash
+
+ curl http://admin:[email protected]:5984/_membership
+
+Response:
+
+.. code-block:: bash
+
+ {
+ "all_nodes": [
+ "couchdb@couch1",
+ "couchdb@couch2",
+ ],
+ "cluster_nodes": [
+ "couchdb@couch1",
+ "couchdb@couch2",
+ ]
+ }
+
Review comment:
This is a useful thing to add, thanks.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services