Skip to content

Commit 81612c0

Browse files
Add note about mongosync perf issue when Balancer is enabled (#243)
* add admonition regarding getBalancerState * reword warning and re-include * fix link to getBalancerState() * fix writing issues * move note location * move to new section * Update source/includes/sharding-perf.rst Co-authored-by: Jeff Allen <[email protected]> --------- Co-authored-by: Jeff Allen <[email protected]>
1 parent 494540e commit 81612c0

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

source/includes/sharding-perf.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
If the destination is a sharded cluster with the balancer enabled, write
3+
performance of the destination cluster may degrade during ``mongosync``'s
4+
Collection Copy phase. To warn of this potential performance impact,
5+
``mongosync`` runs the :method:`sh.getBalancerState()` command during
6+
initialization. If ``getBalancerState()`` returns ``true``, ``mongosync``
7+
logs a warning.
8+
9+
If write performance during migration is impacted, consider disabling the
10+
balancer on the destination cluster. You stop the balancer with the
11+
:dbcommand:`balancerStop` command, and restart it with the
12+
:dbcommand:`balancerStart` command.

source/includes/sharding-warning.rst

Lines changed: 0 additions & 13 deletions
This file was deleted.

source/multiple-mongosyncs.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ Use ``curl`` or another HTTP client to issue the :ref:`start
169169
The ``start`` command options must be the same for all of the ``mongosync``
170170
instances.
171171

172+
.. _c2c-sharded-performance:
173+
174+
Performance
175+
-----------
176+
177+
.. include:: /includes/sharding-perf
178+
172179
.. _c2c-sharded-progress:
173180

174181
Check Progress
@@ -300,4 +307,3 @@ instance that is running on ``mongosync01Host`` and using ``port
300307
Reverse synchronization is only possible if ``reversible`` and
301308
``enableUserWriteBlocking`` are both set to ``true`` when the
302309
:ref:`start API <c2c-api-start>` initiates ``mongosync``.
303-

0 commit comments

Comments
 (0)