@@ -31,15 +31,15 @@ Check the Balancer State
31
31
actively migrating data.
32
32
33
33
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:
35
35
36
36
.. code-block:: javascript
37
37
38
38
sh.getBalancerState()
39
39
40
40
You can also see if the balancer is enabled using :method:`sh.status()`.
41
41
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
43
43
:data:`~sh.status.balancer.currently-running` field indicates if the
44
44
balancer is currently running.
45
45
@@ -134,15 +134,15 @@ all migration, use the following procedure:
134
134
135
135
.. include:: /includes/extracts/4.2-changes-stop-balancer-autosplit.rst
136
136
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,
138
138
which returns ``false`` if the balancer is disabled:
139
139
140
140
.. code-block:: javascript
141
141
142
142
sh.getBalancerState()
143
143
144
144
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:
146
146
147
147
.. code-block:: javascript
148
148
@@ -320,18 +320,11 @@ when the migration proceeds with next document in the chunk.
320
320
321
321
In the :data:`config.settings` collection:
322
322
323
-
324
323
- 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
326
325
the requested acknowledgment before proceeding with the next
327
326
document.
328
327
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
-
335
328
- If the ``_secondaryThrottle`` setting is unset, the migration process
336
329
does not wait for replication to a secondary and instead continues
337
330
with the next document.
@@ -342,7 +335,7 @@ To change the ``_secondaryThrottle`` setting, connect to a
342
335
:binary:`~bin.mongos` instance and directly update the
343
336
``_secondaryThrottle`` value in the :data:`~config.settings` collection
344
337
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
346
339
the following command:
347
340
348
341
.. code-block:: javascript
@@ -440,7 +433,7 @@ To set the balancer's ``attemptToBalanceJumboChunks`` setting, connect
440
433
to a :binary:`~bin.mongos` instance and directly update the
441
434
:data:`config.settings` collection. For example, from a
442
435
:binary:`~bin.mongosh` shell connected to a :binary:`~bin.mongos`
443
- instance, issue the following command:
436
+ instance, run the following command:
444
437
445
438
.. code-block:: javascript
446
439
0 commit comments