@@ -20,7 +20,7 @@ addShard
20
20
21
21
Use the :dbcommand:`addShard` command to add a database instance
22
22
or replica set to a :term:`sharded cluster`.
23
- You must run this command against a :program:`mongos` instance.
23
+ You must run this command when connected a :program:`mongos` instance.
24
24
25
25
The command takes the following form:
26
26
@@ -47,8 +47,9 @@ addShard
47
47
:term:`replica sets <replica set>`.
48
48
To add a shard on a replica set you must specify the name of the
49
49
replica set and the hostname of at least one member of the replica
50
- set. You may specify all of the hostnames, but at least one member
51
- must be specified.
50
+ set. You must specify at least one member of the set, but can
51
+ specify all members in the set or another subset if
52
+ desired. :dbcommand:`addShard` takes the following form:
52
53
53
54
.. code-block:: javascript
54
55
@@ -58,7 +59,7 @@ addShard
58
59
59
60
.. code-block:: javascript
60
61
61
- db.runCommand({ addShard: "repl0/mongodb3.example.net:27327"})
62
+ db.runCommand( { addShard: "repl0/mongodb3.example.net:27327"} )
62
63
63
64
If you specify additional hostnames, all must be members of the same
64
65
replica set.
@@ -78,7 +79,7 @@ addShard
78
79
79
80
.. seealso::
80
81
81
- * :method:`sh.addShard()`
82
- * :doc:`/administration/sharding`
83
- * :doc:`/tutorial/add-shards-to-shard-cluster`
84
- * :doc:`/tutorial/remove-shards-from-cluster`
82
+ - :method:`sh.addShard()`
83
+ - :doc:`/administration/sharding`
84
+ - :doc:`/tutorial/add-shards-to-shard-cluster`
85
+ - :doc:`/tutorial/remove-shards-from-cluster`
0 commit comments