File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,16 @@ use the following procedure as a quick starting point:
88
88
sh.addShard( "mongodb0.example.net:27027" )
89
89
90
90
If ``mongodb0.example.net:27027`` is a member of a replica
91
- set, MongoDB will discover all other members of the replica set.
91
+ set, call the :method:`sh.addShard()` method with an argument that
92
+ resembles the following:
92
93
93
- Repeat this step for each new shard in your cluster.
94
+ .. code-block:: javascript
95
+
96
+ sh.addShard( "<setName>/mongodb0.example.net:27027" )
97
+
98
+ Replace, ``<setName>`` with the name of the replica set, and
99
+ MongoDB will discover all other members of the replica set. Repeat
100
+ this step for each new shard in your cluster.
94
101
95
102
.. optional::
96
103
Original file line number Diff line number Diff line change @@ -54,8 +54,16 @@ For example:
54
54
55
55
sh.addShard( "mongodb0.example.net:27027" )
56
56
57
- MongoDB will discover all other members of the replica set, if
58
- ``mongodb0.example.net:27027`` is a member of a replica set.
57
+ If ``mongodb0.example.net:27027`` is a member of a replica
58
+ set, call the :method:`sh.addShard()` method with an argument that
59
+ resembles the following:
60
+
61
+ .. code-block:: javascript
62
+
63
+ sh.addShard( "<setName>/mongodb0.example.net:27027" )
64
+
65
+ Replace, ``<setName>`` with the name of the replica set, and
66
+ MongoDB will discover all other members of the replica set.
59
67
60
68
.. note:: In production deployments, all shards should be replica sets.
61
69
You can’t perform that action at this time.
0 commit comments