Skip to content

Commit c157af6

Browse files
author
Andrew Leung
committed
DOCS-227 consistency edits - replicaSet example
1 parent e0eb12f commit c157af6

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

source/tutorial/add-shards-to-shard-cluster.txt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,19 @@ For example:
5757

5858
.. versionchanged:: 2.0.3
5959

60-
Before version 2.0.3, you must specify the shard in the
61-
following form: the replica set name, followed by a forward
62-
slash, followed by a comma-separated list of seeds for the
63-
replica set. For example, if the name of the replica set is
64-
"myapp1", then your :func:`sh.addShard` command might resemble:
60+
Before version 2.0.3, you must specify the shard in the following
61+
form:
62+
63+
.. code-block:: sh
64+
65+
replicaSetName/<seed1>,<seed2>,<seed3>
66+
67+
For example, if the name of the replica set is "``repl0``", then
68+
your :func:`sh.addShard` command would be:
6569

6670
.. code-block:: javascript
6771

68-
sh.addShard( "myapp1/mongodb0.example.net:27027,mongodb1.example.net:27017" )
72+
sh.addShard( "repl0/mongodb0.example.net:27027,mongodb1.example.net:27017,mongodb2.example.net:27017" )
6973

7074
Repeat this step for each shards in your cluster.
7175

0 commit comments

Comments
 (0)