Skip to content

Commit 3033a9a

Browse files
author
Sam Kleinman
committed
merge: DOCS-865
1 parent ff72e49 commit 3033a9a

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

source/reference/command/addShard.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ addShard
2020

2121
Use the :dbcommand:`addShard` command to add a database instance
2222
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.
2424

2525
The command takes the following form:
2626

@@ -47,8 +47,9 @@ addShard
4747
:term:`replica sets <replica set>`.
4848
To add a shard on a replica set you must specify the name of the
4949
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:
5253

5354
.. code-block:: javascript
5455

@@ -58,7 +59,7 @@ addShard
5859

5960
.. code-block:: javascript
6061

61-
db.runCommand({ addShard: "repl0/mongodb3.example.net:27327"})
62+
db.runCommand( { addShard: "repl0/mongodb3.example.net:27327"} )
6263

6364
If you specify additional hostnames, all must be members of the same
6465
replica set.
@@ -78,7 +79,7 @@ addShard
7879

7980
.. seealso::
8081

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`

source/reference/method/db.printShardingStatus.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ db.printShardingStatus()
99
Provides a formatted report of the sharding configuration and the
1010
information regarding existing chunks in a :term:`sharded cluster`.
1111

12-
This method must be executed on a :program:`mongos` instance.
12+
Only use :method:`db.printShardingStatus()` when connected to a
13+
:program:`mongos` instance.
1314

1415
This method is a wrapper around the :dbcommand:`printShardingStatus`
1516
command.

source/reference/method/sh.addShard.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ sh.addShard()
3232
:term:`replica sets <replica set>`.
3333
To add a shard on a replica set you must specify the name of the
3434
replica set and the hostname of at least one member of the replica
35-
set. You may specify all of the hostnames, but at least one member
36-
must be specified.
35+
set. You must specify at least one member of the set, but can
36+
specify all members in the set or another subset if
37+
desired. :method:`sh.addShard()` takes the following form:
3738

38-
If you specify additional hostnames, all must be members of the same
39-
replica set.
39+
If you specify additional hostnames, all must be members of the
40+
same replica set.
4041

4142
.. code-block:: javascript
4243

@@ -55,8 +56,7 @@ sh.addShard()
5556

5657
.. seealso::
5758

58-
* :dbcommand:`addShard`
59-
* :doc:`/administration/sharding`
60-
* :doc:`/tutorial/add-shards-to-shard-cluster`
61-
* :doc:`/tutorial/remove-shards-from-cluster`
62-
59+
- :dbcommand:`addShard`
60+
- :doc:`/administration/sharding`
61+
- :doc:`/tutorial/add-shards-to-shard-cluster`
62+
- :doc:`/tutorial/remove-shards-from-cluster`

0 commit comments

Comments
 (0)