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

source/reference/command/split.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ Definition
2727
these circumstances, and on the MongoDB shell commands that wrap
2828
:dbcommand:`split`.
2929

30+
.. |method| replace:: :method:`sh.splitAt` and :method:`sh.splitFind`
31+
helper methods
32+
.. include:: /includes/fact-dbcommand-tip
33+
3034
The :dbcommand:`split` command must be run in the ``admin`` database
3135
and uses the following form:
3236

source/reference/command/updateZoneKeyRange.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ Definition
2323

2424
.. include:: /includes/extracts/zoned-sharding-updateZoneKeyRange-change.rst
2525

26+
.. |method| replace:: :method:`sh.updateZoneKeyRange`
27+
helper method
28+
.. include:: /includes/fact-dbcommand-tip
29+
30+
2631
.. |command| replace:: ``updateZoneKeyRange``
2732

2833
.. include:: /includes/fact-dbcommand.rst

source/reference/method/js-sharding.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ Sharding Methods
148148
:titlesonly:
149149
:hidden:
150150

151+
/reference/method/convertShardKeyToHashed
151152
/reference/method/sh.addShard
152153
/reference/method/sh.addShardTag
153154
/reference/method/sh.addShardToZone
@@ -159,13 +160,13 @@ Sharding Methods
159160
/reference/method/sh.enableAutoSplit
160161
/reference/method/sh.enableSharding
161162
/reference/method/sh.getBalancerState
162-
/reference/method/sh.removeTagRange
163-
/reference/method/sh.removeRangeFromZone
164163
/reference/method/sh.help
165164
/reference/method/sh.isBalancerRunning
166165
/reference/method/sh.moveChunk
166+
/reference/method/sh.removeRangeFromZone
167167
/reference/method/sh.removeShardTag
168168
/reference/method/sh.removeShardFromZone
169+
/reference/method/sh.removeTagRange
169170
/reference/method/sh.setBalancerState
170171
/reference/method/sh.shardCollection
171172
/reference/method/sh.splitAt
@@ -177,4 +178,3 @@ Sharding Methods
177178
/reference/method/sh.waitForBalancerOff
178179
/reference/method/sh.waitForPingChange
179180
/reference/method/sh.updateZoneKeyRange
180-
/reference/method/convertShardKeyToHashed

source/reference/method/sh.addShard.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Definition
1818
Adds a shard replica set to a :term:`sharded cluster`. This method
1919
must be run on a :binary:`~bin.mongos` instance.
2020

21+
.. |dbcommand| replace:: :dbcommand:`addShard` command
22+
.. include:: /includes/fact-mongo-shell-method-alt.rst
23+
2124
The :method:`sh.addShard()` method has the following parameter:
2225

2326

@@ -63,10 +66,6 @@ Definition
6366
.. include:: /includes/note-deb-and-rpm-default-to-localhost.rst
6467

6568
.. include:: /includes/extracts/mongos-operations-wc-add-shard.rst
66-
67-
The :method:`sh.addShard()` method is a helper for the
68-
:dbcommand:`addShard` command. The :dbcommand:`addShard` command has
69-
additional options which are not available with this helper.
7069

7170
Considerations
7271
--------------

source/reference/method/sh.addShardToZone.txt

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

24+
.. |dbcommand| replace:: :dbcommand:`addShardToZone` command
25+
.. include:: /includes/fact-mongo-shell-method-alt.rst
26+
27+
This method has the following parameter:
2428

2529
.. list-table::
2630
:header-rows: 1

source/reference/method/sh.balancerCollectionStatus.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ Definition
2323
of draining shards, zone violation or imbalance of chunks across
2424
shards.
2525

26-
The :binary:`~bin.mongo` shell method
27-
:method:`sh.balancerCollectionStatus()` wraps the
28-
:dbcommand:`balancerCollectionStatus` command.
26+
.. |dbcommand| replace:: :dbcommand:`balancerCollectionStatus` command
27+
.. include:: /includes/fact-mongo-shell-method-alt.rst
2928

3029
Syntax
3130
------

source/reference/method/sh.enableSharding.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ Definition
2121
shell method :method:`sh.enableSharding()` wraps the
2222
:dbcommand:`enableSharding` command.
2323

24+
.. |dbcommand| replace:: :dbcommand:`enableSharding` command
25+
.. include:: /includes/fact-mongo-shell-method-alt.rst
26+
27+
2428
Syntax
2529
------
2630

source/reference/method/sh.isBalancerRunning.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ sh.isBalancerRunning()
1919
running. Use :method:`sh.getBalancerState()` to determine if the
2020
balancer is enabled or disabled.
2121

22+
.. |dbcommand| replace:: :dbcommand:`balancerStatus` command
23+
.. include:: /includes/fact-mongo-shell-method-alt.rst
24+
2225
.. seealso::
2326

2427
- :method:`sh.enableBalancing()`

source/reference/method/sh.moveChunk.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ Definition
2525
automatically migrate :term:`chunks <chunk>`, and avoid calling
2626
:method:`sh.moveChunk()` directly.
2727

28+
.. |dbcommand| replace:: :dbcommand:`moveChunk` command
29+
.. include:: /includes/fact-mongo-shell-method-alt.rst
30+
2831
:method:`sh.moveChunk()` takes the following arguments:
2932

3033
.. list-table::

source/reference/method/sh.removeShardFromZone.txt

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

2020
Removes the association between a :term:`zone` and a shard.
2121

22+
.. |dbcommand| replace:: :dbcommand:`removeShardFromZone` command
23+
.. include:: /includes/fact-mongo-shell-method-alt.rst
24+
25+
This method has the following parameters:
2226

2327
.. list-table::
2428
:header-rows: 1

source/reference/method/sh.setBalancerState.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ Description
2323
currently enabled or disabled and :method:`sh.isBalancerRunning()`
2424
to check its current state.
2525

26+
.. |dbcommand| replace:: :dbcommand:`balancerStart` and
27+
:dbcommand:`balancerStop` commands
28+
.. include:: /includes/fact-mongo-shell-method-alt.rst
29+
30+
2631
.. important::
2732

2833
You can only run :method:`sh.setBalancerState()` on a

source/reference/method/sh.shardCollection.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ Definition
2424
The :binary:`~bin.mongo` shell method :method:`sh.shardCollection`
2525
wraps the :dbcommand:`shardCollection` command.
2626

27+
.. |dbcommand| replace:: :dbcommand:`shardCollection` command
28+
.. include:: /includes/fact-mongo-shell-method-alt.rst
29+
2730
:method:`sh.shardCollection()` takes the following
2831
arguments:
2932

source/reference/method/sh.splitAt.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Definition
1717

1818
Splits a chunk at the shard key value specified by the query.
1919

20+
.. |dbcommand| replace:: :dbcommand:`split` command
21+
.. include:: /includes/fact-mongo-shell-method-alt.rst
22+
23+
2024
The method takes the following arguments:
2125

2226

@@ -46,12 +50,7 @@ Definition
4650
- A query document that specifies the :term:`shard key` value at which
4751
to split the chunk.
4852

49-
50-
51-
5253

53-
The :method:`sh.splitAt()` method wraps the :dbcommand:`split`
54-
command.
5554

5655
Consideration
5756
-------------

source/reference/method/sh.splitFind.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Definition
2020
creates two roughly equal chunks. To split a chunk at a specific
2121
point instead, see :method:`sh.splitAt()`.
2222

23+
.. |dbcommand| replace:: :dbcommand:`split` command
24+
.. include:: /includes/fact-mongo-shell-method-alt.rst
25+
2326
The method takes the following arguments:
2427

2528

source/reference/method/sh.startBalancer.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Definition
2121
:method:`sh.startBalancer()` also enables auto-splitting for the
2222
sharded cluster.
2323

24+
.. |dbcommand| replace:: :dbcommand:`balancerStart` command
25+
.. include:: /includes/fact-mongo-shell-method-alt.rst
26+
2427
The method can take the following options:
2528

2629

source/reference/method/sh.stopBalancer.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Definition
2121
:method:`sh.stopBalancer()` also disables auto-splitting for the
2222
sharded cluster.
2323

24+
.. |dbcommand| replace:: :dbcommand:`balancerStop` command
25+
.. include:: /includes/fact-mongo-shell-method-alt.rst
26+
2427
The method can take the following options:
2528

2629

source/reference/method/sh.updateZoneKeyRange.txt

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

2222
.. include:: /includes/extracts/zoned-sharding-updateZoneKeyRange-change.rst
2323

24+
.. |dbcommand| replace:: :dbcommand:`updateZoneKeyRange` command
25+
.. include:: /includes/fact-mongo-shell-method-alt.rst
26+
2427
:method:`sh.updateZoneKeyRange()` takes the following arguments:
2528

2629

0 commit comments

Comments
 (0)