Skip to content

fixed secondary throttle section #2235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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