Skip to content

Commit df2ded3

Browse files
authored
DOCSP-24515 sharding interlink v4.4 (#2489)
* DOCSP-24515 Adds Interlinks for Sharding Methods (#2473) (#2483) * DOCSP-24515 Interlinks for Sharding Methods/Commands * Fixes typo * addShard * addShard * Interlinks addShardToZone * interlinks balancerCollectionStatus * Adds interlinks * Fixes TOC order * Adds interlinks * Fixes build error
1 parent ff74237 commit df2ded3

27 files changed

+104
-19
lines changed

source/reference/command/addShard.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ Definition
1717

1818
Adds a shard replica set to a :term:`sharded cluster`.
1919

20+
.. |method| replace:: :method:`sh.addShard` helper method
21+
.. include:: /includes/fact-dbcommand-tip
22+
2023
Run :dbcommand:`addShard` when connected to a :binary:`~bin.mongos`
2124
instance. The command takes the following form to add a shard
2225
replica set:

source/reference/command/addShardToZone.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Definition
2121
the given zone. Chunks that are covered by the zone are assigned to shards
2222
associated with the zone.
2323

24+
.. |method| replace:: :method:`sh.addShardToZone` helper method
25+
.. include:: /includes/fact-dbcommand-tip
26+
2427
.. |command| replace:: ``addShardToZone``
2528

2629
Syntax

source/reference/command/balancerCollectionStatus.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ Definition
2626
You can only issue the :dbcommand:`balancerCollectionStatus` against the
2727
``admin`` database.
2828

29+
.. |method| replace:: :method:`sh.balancerCollectionStatus`
30+
helper method
31+
.. include:: /includes/fact-dbcommand-tip
32+
2933
The command takes the following form:
3034

3135
.. code-block:: javascript

source/reference/command/balancerStart.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ Definition
2424
sharded cluster. To disable auto-splitting when the balancer is
2525
enabled, you can use :method:`sh.disableAutoSplit()`.
2626

27+
.. |method| replace:: :method:`sh.startBalancer`
28+
helper method
29+
.. include:: /includes/fact-dbcommand-tip
30+
2731
Syntax
2832
------
2933

@@ -87,4 +91,4 @@ and issue the following command:
8791
.. seealso::
8892

8993
- :method:`sh.startBalancer()`
90-
- :dbcommand:`balancerStart`
94+
- :dbcommand:`balancerStart`

source/reference/command/balancerStatus.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ Definition
2323
You can only issue the :dbcommand:`balancerStatus` against the
2424
``admin`` database.
2525

26+
.. |method| replace:: :method:`sh.isBalancerRunning`
27+
helper method
28+
.. include:: /includes/fact-dbcommand-tip
29+
2630
The command takes the following form:
2731

2832
.. code-block:: javascript

source/reference/command/balancerStop.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ Definition
2323
Starting in MongoDB 4.2, the command disables auto-splitting for the sharded cluster. To enable auto-splitting when the balancer is
2424
disabled, you can use :method:`sh.enableAutoSplit()`.
2525

26+
You can only issue the :dbcommand:`balancerStop` against the
27+
``admin`` database on a :binary:`~bin.mongos` instance.
28+
29+
30+
.. |method| replace:: :method:`sh.stopBalancer`
31+
helper method
32+
.. include:: /includes/fact-dbcommand-tip
33+
2634
Syntax
2735
------
2836

source/reference/command/enableSharding.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ Definition
2020
for a database, you can use the :dbcommand:`shardCollection` command
2121
to shard collections in that database.
2222

23-
The :binary:`~bin.mongo` shell method :method:`sh.enableSharding()`
24-
wraps the :dbcommand:`enableSharding` command.
25-
23+
.. |method| replace:: :method:`sh.enableSharding`
24+
helper method
25+
.. include:: /includes/fact-dbcommand-tip
26+
2627
Syntax
2728
------
2829

source/reference/command/moveChunk.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ Definition
2020
a :binary:`~bin.mongos` instance while using the :term:`admin database`.
2121
Use the following forms:
2222

23+
24+
.. |method| replace:: :method:`sh.moveChunk`
25+
helper method
26+
.. include:: /includes/fact-dbcommand-tip
27+
2328
.. code-block:: javascript
2429

2530

source/reference/command/removeShardFromZone.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ Definition
2020
The :dbcommand:`removeShardFromZone` administrative command removes the
2121
association between a shard and a :term:`zone`.
2222

23+
24+
.. |method| replace:: :method:`sh.removeShardFromZone`
25+
helper method
26+
.. include:: /includes/fact-dbcommand-tip
27+
2328
.. |command| replace:: ``removeShardFromZone``
2429

2530
Syntax

source/reference/command/shardCollection.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Definition
2525

2626
.. include:: /includes/fact-dbcommand.rst
2727

28+
.. |method| replace:: :method:`sh.shardCollection`
29+
helper method
30+
.. include:: /includes/fact-dbcommand-tip
31+
2832
:dbcommand:`shardCollection` has the following form:
2933

3034
.. code-block:: javascript

0 commit comments

Comments
 (0)