Skip to content

Commit d4156e6

Browse files
authored
DOCSP-24515 Adds Interlinks for Sharding Methods (#2473) (#2484)
* DOCSP-24515 Interlinks for Sharding Methods/Commands * Fixes typo * addShard * addShard * Interlinks addShardToZone * interlinks balancerCollectionStatus * Adds interlinks * Fixes TOC order * Adds interlinks
1 parent f101d9c commit d4156e6

33 files changed

+135
-30
lines changed

source/reference/command/abortReshardCollection.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ Definition
2929
:dbcommand:`abortReshardCollection` command, the command returns an
3030
error.
3131

32-
The :binary:`~bin.mongosh` provides a wrapper method
33-
:method:`sh.abortReshardCollection()`.
32+
33+
.. |method| replace:: :method:`sh.abortReshardCollection`
34+
helper method
35+
.. include:: /includes/fact-dbcommand-tip
36+
3437

3538
Syntax
3639
------

source/reference/command/addShard.txt

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

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

20-
Run :dbcommand:`addShard` when connected to a :binary:`~bin.mongos`
21-
instance.
20+
.. |method| replace:: :method:`sh.addShard` helper method
21+
.. include:: /includes/fact-dbcommand-tip
22+
2223

2324
Syntax
2425
------

source/reference/command/addShardToZone.txt

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

22+
.. |method| replace:: :method:`sh.addShardToZone` helper method
23+
.. include:: /includes/fact-dbcommand-tip
24+
2225
.. |command| replace:: ``addShardToZone``
2326

2427
You can only run :dbcommand:`addShardToZone` on the ``admin`` database

source/reference/command/balancerCollectionStatus.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ 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+
33+
2934
Syntax
3035
------
3136

source/reference/command/balancerStart.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ Definition
1717

1818
Starts the balancer thread. The command does not wait for a
1919
balancing round to start.
20-
20+
21+
22+
.. |method| replace:: :method:`sh.startBalancer`
23+
helper method
24+
.. include:: /includes/fact-dbcommand-tip
25+
2126
.. include:: /includes/autosplit-no-operation.rst
2227

2328
In MongoDB versions earlier than 6.0, the command enables

source/reference/command/balancerStatus.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ Definition
2121
You can only issue the :dbcommand:`balancerStatus` against the
2222
``admin`` database.
2323

24+
.. |method| replace:: :method:`sh.isBalancerRunning`
25+
helper method
26+
.. include:: /includes/fact-dbcommand-tip
27+
28+
2429
Syntax
2530
------
2631

source/reference/command/balancerStop.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ Definition
2121
You can only issue the :dbcommand:`balancerStop` against the
2222
``admin`` database on a :binary:`~bin.mongos` instance.
2323

24+
25+
.. |method| replace:: :method:`sh.stopBalancer`
26+
helper method
27+
.. include:: /includes/fact-dbcommand-tip
28+
29+
2430
.. include:: /includes/autosplit-no-operation.rst
2531

2632
In MongoDB versions earlier than 6.0, the command disables

source/reference/command/commitReshardCollection.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ Definition
2626
:dbcommand:`commitReshardCollection` command blocks writes early and
2727
forces the resharding operation to complete.
2828

29+
.. |method| replace:: :method:`sh.commitReshardCollection`
30+
helper method
31+
.. include:: /includes/fact-dbcommand-tip
32+
33+
2934
Syntax
3035
------
3136

source/reference/command/enableSharding.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ Definition
2424

2525
The :dbcommand:`enableSharding` command explicitly creates a database.
2626

27-
The :binary:`~bin.mongosh` method :method:`sh.enableSharding()`
28-
wraps the :dbcommand:`enableSharding` command.
27+
.. |method| replace:: :method:`sh.enableSharding`
28+
helper method
29+
.. include:: /includes/fact-dbcommand-tip
2930

3031
Syntax
3132
------

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

0 commit comments

Comments
 (0)