@@ -13,7 +13,6 @@ Sharded Cluster Balancer
1313 :depth: 1
1414 :class: singlecol
1515
16-
1716The MongoDB balancer is a background process that monitors the number of
1817:term:`chunks <chunk>` on each :term:`shard`. When the number of chunks on a
1918given shard reaches specific :ref:`migration thresholds
@@ -60,18 +59,15 @@ Chunk migrations carry some overhead in terms of bandwidth and
6059workload, both of which can impact database performance. [#auto-distribute]_ The
6160:term:`balancer` attempts to minimize the impact by:
6261
63- - Restricting a shard to at most one migration at any given time; i.e.
64- a shard cannot participate in multiple chunk migrations at the same
65- time. To migrate multiple chunks from a shard, the balancer migrates
66- the chunks one at a time.
67-
68- .. versionchanged:: 3.4
62+ - Restricting a shard to at most one migration at any given time.
63+ Specifically, a shard cannot participate in multiple chunk migrations
64+ at the same time. To migrate multiple chunks from a shard, the
65+ balancer migrates the chunks one at a time.
6966
70- Starting in MongoDB 3.4, MongoDB can perform parallel chunk
71- migrations. Observing the restriction that a shard can participate
72- in at most one migration at a time, for a sharded cluster with *n*
73- shards, MongoDB can perform at most *n/2* (rounded down)
74- simultaneous chunk migrations.
67+ MongoDB can perform parallel chunk migrations, but a shard can
68+ participate in at most one migration at a time. For a sharded cluster
69+ with *n* shards, MongoDB can perform at most *n/2* (rounded down)
70+ simultaneous chunk migrations.
7571
7672 See also :ref:`chunk-migration-queuing`.
7773
@@ -260,8 +256,6 @@ testing purposes. For more information, see
260256Chunk Migration and Replication
261257~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
262258
263- .. versionchanged:: 3.4
264-
265259During chunk migration, the ``_secondaryThrottle`` value determines
266260when the migration proceeds with next document in the chunk.
267261
@@ -282,7 +276,6 @@ In the :data:`config.settings` collection:
282276 does not wait for replication to a secondary and instead continues
283277 with the next document.
284278
285-
286279To update the ``_secondaryThrottle`` parameter for the balancer, see
287280:ref:`sharded-cluster-config-secondary-throttle` for an example.
288281
@@ -335,6 +328,11 @@ with :parameter:`rangeDeleterBatchSize` and
335328 collection targeted for deletes, range deletion processes may
336329 not proceed.
337330
331+ Change Streams and Orphan Documents
332+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
333+
334+ .. include:: /includes/change-streams-and-orphans.rst
335+
338336.. _sharding-shard-size:
339337
340338Shard Size
0 commit comments