Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions source/tutorial/configure-sharded-cluster-balancer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ The ``_secondaryThrottle`` parameter of the balancer and the
:ref:`chunk migration <chunk-migration-replication>`. By default,
``_secondaryThrottle`` is ``true``, which means each document move
during chunk migration propagates to at least one secondary before the
balancer proceeds with its next operation: this is equivalent to a write
balancer proceeds with the next document: this is equivalent to a write
concern of ``{ w: 2 }``.

You can also configure the ``writeConcern`` for the
``_secondaryThrottle`` operation, to configure how migrations will
wait for replication to complete. For more information on the
replication behavior during various steps of chunk migration,
see:ref:`chunk-migration-replication`.
see :ref:`chunk-migration-replication`.

To change the balancer's ``_secondaryThrottle`` and ``writeConcern``
values, connect to a :program:`mongos` instance and directly update
Expand All @@ -148,8 +148,8 @@ example, from a :program:`mongo` shell connected to a
use config
db.settings.update(
{ "_id" : "balancer" },
{ $set : { "_secondaryThrottle" : false },
{ "writeConcern": { "w": "majority" } } },
{ $set : { "_secondaryThrottle" : false ,
"writeConcern": { "w": "majority" } } },
{ upsert : true }
)

Expand Down