File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,16 @@ sh.addShard()
10
10
replica set configuration.
11
11
12
12
Use this method to add a database instance or replica set to a
13
- :term:`sharded cluster`.
14
- This method must be run on a :program:`mongos` instance.
15
- The ``host`` parameter can be in any of the following forms: ::
16
-
17
- [hostname]
18
- [hostname]:[port]
19
- [set]/[hostname]
20
- [set]/[hostname],[hostname]:port
13
+ :term:`sharded cluster`. This method must be run on a
14
+ :program:`mongos` instance. The ``host`` parameter can be in any
15
+ of the following forms:
16
+
17
+ .. code-block:: none
18
+
19
+ [hostname]
20
+ [hostname]:[port]
21
+ [set]/[hostname]
22
+ [set]/[hostname],[hostname]:port
21
23
22
24
You can specify shards using the hostname, or a hostname and port
23
25
combination if the shard is running on a non-standard port.
You can’t perform that action at this time.
0 commit comments