Skip to content

Commit 14713e8

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-28856-secondary-throttle-update (#7258) (#7362)
* DOCSP-28856-secondary-throttle-update * DOCSP-28856-secondary-throttle-update * DOCSP-28856-secondary-throttle-update * DOCSP-28856-secondary-throttle-update --------- Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 2c7e1d8 commit 14713e8

File tree

2 files changed

+8
-21
lines changed

2 files changed

+8
-21
lines changed

source/core/sharding-balancer-administration.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,16 +236,10 @@ when the migration proceeds with next document in the range.
236236
In the :data:`config.settings` collection:
237237

238238
- If the ``_secondaryThrottle`` setting for the balancer is set to a
239-
write concern, each document move during range migration must receive
239+
:term:`write concern`, each document moved during range migration must receive
240240
the requested acknowledgment before proceeding with the next
241241
document.
242242

243-
- If the ``_secondaryThrottle`` setting for the balancer is set to
244-
``true``, each document move during range migration must receive
245-
acknowledgment from at least one secondary before the migration
246-
proceeds with the next document in the range. This is equivalent to a
247-
write concern of :writeconcern:`{ w: 2 } <\<number\>>`.
248-
249243
- If the ``_secondaryThrottle`` setting is unset, the migration process
250244
does not wait for replication to a secondary and instead continues
251245
with the next document.

source/tutorial/manage-sharded-cluster-balancer.txt

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ Check the Balancer State
3131
actively migrating data.
3232

3333
To see if the balancer is enabled in your :term:`sharded cluster`,
34-
issue the following command, which returns a boolean:
34+
run the following command, which returns a boolean:
3535

3636
.. code-block:: javascript
3737

3838
sh.getBalancerState()
3939

4040
You can also see if the balancer is enabled using :method:`sh.status()`.
4141
The :data:`~sh.status.balancer.currently-enabled` field indicates
42-
whether the balancer is enabled, while the
42+
whether the balancer is enabled, and the
4343
:data:`~sh.status.balancer.currently-running` field indicates if the
4444
balancer is currently running.
4545

@@ -134,15 +134,15 @@ all migration, use the following procedure:
134134

135135
.. include:: /includes/extracts/4.2-changes-stop-balancer-autosplit.rst
136136

137-
#. To verify that the balancer will not start, issue the following command,
137+
#. To verify that the balancer won't start, run the following command,
138138
which returns ``false`` if the balancer is disabled:
139139

140140
.. code-block:: javascript
141141

142142
sh.getBalancerState()
143143

144144
Optionally, to verify no migrations are in progress after disabling,
145-
issue the following operation in the :binary:`~bin.mongosh` shell:
145+
run the following operation in the :binary:`~bin.mongosh` shell:
146146

147147
.. code-block:: javascript
148148

@@ -320,18 +320,11 @@ when the migration proceeds with next document in the chunk.
320320

321321
In the :data:`config.settings` collection:
322322

323-
324323
- If the ``_secondaryThrottle`` setting for the balancer is set to a
325-
write concern, each document move during chunk migration must receive
324+
:term:`write concern`, each document moved during chunk migration must receive
326325
the requested acknowledgment before proceeding with the next
327326
document.
328327

329-
- If the ``_secondaryThrottle`` setting for the balancer is set to
330-
``true``, each document move during chunk migration must receive
331-
acknowledgment from at least one secondary before the migration
332-
proceeds with the next document in the chunk. This is equivalent to a
333-
write concern of :writeconcern:`{ w: 2 } <\<number\>>`.
334-
335328
- If the ``_secondaryThrottle`` setting is unset, the migration process
336329
does not wait for replication to a secondary and instead continues
337330
with the next document.
@@ -342,7 +335,7 @@ To change the ``_secondaryThrottle`` setting, connect to a
342335
:binary:`~bin.mongos` instance and directly update the
343336
``_secondaryThrottle`` value in the :data:`~config.settings` collection
344337
of the :ref:`config database <config-database>`. For example, from a
345-
:binary:`~bin.mongosh` shell connected to a :binary:`~bin.mongos`, issue
338+
:binary:`~bin.mongosh` shell connected to a :binary:`~bin.mongos`, run
346339
the following command:
347340

348341
.. code-block:: javascript
@@ -440,7 +433,7 @@ To set the balancer's ``attemptToBalanceJumboChunks`` setting, connect
440433
to a :binary:`~bin.mongos` instance and directly update the
441434
:data:`config.settings` collection. For example, from a
442435
:binary:`~bin.mongosh` shell connected to a :binary:`~bin.mongos`
443-
instance, issue the following command:
436+
instance, run the following command:
444437

445438
.. code-block:: javascript
446439

0 commit comments

Comments
 (0)