Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 21d08a5

Browse files
committed
tweaks
1 parent a2ab127 commit 21d08a5

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

source/includes/fact-mongosync-balancer.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
.. important::
22

33
If the source or destination cluster is a sharded cluster
4-
and you are not running ``mongosync`` with namespace filtering,
4+
and you are not running ``mongosync`` with :ref:`namespace
5+
filtering <c2c-filtered-sync>`,
56
you must disable the source cluster's balancer
67
by running the :dbcommand:`balancerStop` command and waiting 15 minutes
78
for the command to complete.
89

910
If the source or destination cluster is a sharded cluster and you
10-
are running ``mongosync`` with :ref:`namespace
11-
filtering <c2c-filtered-sync>`, you can enable the source cluster's
11+
are running ``mongosync`` with namespace filtering, you can enable the source cluster's
1212
balancer overall but you must disable it for
1313
all collections within the namespace filter.
1414
See :ref:`disabling-balancer-filtered`. You can also disable
1515
the source cluster's balancer.
1616

1717
You must always disable the balancer on a sharded destination
18-
cluster.
18+
cluster by using :dbcommand:`balancerStop`.
1919

2020
During migration, do not run the :dbcommand:`moveChunk` or
2121
:dbcommand:`moveRange` commands. If you have enabled the source cluster's

source/reference/limitations.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,21 +125,21 @@ Sharded Clusters
125125
Indexes Across Shards <manage-indexes-find-inconsistent-indexes>`.
126126

127127
- If the source or destination cluster is a sharded cluster
128-
and you are not running ``mongosync`` with namespace filtering,
128+
and you are not running ``mongosync`` with :ref:`namespace
129+
filtering <c2c-filtered-sync>`,
129130
you must disable the source cluster's balancer
130131
by running the :dbcommand:`balancerStop` command and waiting 15 minutes
131132
for the command to complete.
132133

133134
If the source or destination cluster is a sharded cluster and you
134-
are running ``mongosync`` with :ref:`namespace
135-
filtering <c2c-filtered-sync>`, you can enable the source cluster's
135+
are running ``mongosync`` with namespace filtering, you can enable the source cluster's
136136
balancer overall but you must disable it for
137137
all collections within the namespace filter.
138138
See :ref:`disabling-balancer-filtered`. You can also disable
139139
the source cluster's balancer.
140140

141141
You must always disable the balancer on a sharded destination
142-
cluster.
142+
cluster by using :dbcommand:`balancerStop`.
143143

144144
- If you have enabled the source cluster's
145145
balancer, but disabled it for collections within the namespace

source/reference/mongosync/mongosync-behavior.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,15 @@ preserve the source cluster's sharding configuration.
107107
Disabling Balancer for Collections in Filtered Sync
108108
'''''''''''''''''''''''''''''''''''''''''''''''''''
109109

110-
If you want to enable the balancer for collections that are not
111-
included in the namespace filter, use the following instructions before
110+
If you are using a :ref:`namespace filter <c2c-filtered-sync>`
111+
and want to enable your source cluster's balancer,
112+
use the following instructions before
112113
starting ``mongosync``. These instructions allow you to enable the balancer
113114
for the source cluster and disable the balancer for collections
114115
within the namespace filter.
115116

116117
.. procedure::
118+
:style: normal
117119

118120
.. step:: Enable the balancer for the source cluster.
119121

@@ -126,7 +128,7 @@ within the namespace filter.
126128
Disable the balancer for each collection within the
127129
namespace filter by running the :dbcommand:`setAllowMigrations` command:
128130

129-
.. code-block:: shell
131+
.. code-block:: javascript
130132

131133
db.adminCommand(
132134
{

0 commit comments

Comments
 (0)