This repository was archived by the owner on May 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
1
.. important ::
2
2
3
3
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>`,
5
6
you must disable the source cluster's balancer
6
7
by running the :dbcommand: `balancerStop ` command and waiting 15 minutes
7
8
for the command to complete.
8
9
9
10
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
12
12
balancer overall but you must disable it for
13
13
all collections within the namespace filter.
14
14
See :ref: `disabling-balancer-filtered `. You can also disable
15
15
the source cluster's balancer.
16
16
17
17
You must always disable the balancer on a sharded destination
18
- cluster.
18
+ cluster by using :dbcommand: ` balancerStop ` .
19
19
20
20
During migration, do not run the :dbcommand: `moveChunk ` or
21
21
:dbcommand: `moveRange ` commands. If you have enabled the source cluster's
Original file line number Diff line number Diff line change @@ -125,21 +125,21 @@ Sharded Clusters
125
125
Indexes Across Shards <manage-indexes-find-inconsistent-indexes>`.
126
126
127
127
- 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>`,
129
130
you must disable the source cluster's balancer
130
131
by running the :dbcommand:`balancerStop` command and waiting 15 minutes
131
132
for the command to complete.
132
133
133
134
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
136
136
balancer overall but you must disable it for
137
137
all collections within the namespace filter.
138
138
See :ref:`disabling-balancer-filtered`. You can also disable
139
139
the source cluster's balancer.
140
140
141
141
You must always disable the balancer on a sharded destination
142
- cluster.
142
+ cluster by using :dbcommand:`balancerStop` .
143
143
144
144
- If you have enabled the source cluster's
145
145
balancer, but disabled it for collections within the namespace
Original file line number Diff line number Diff line change @@ -107,13 +107,15 @@ preserve the source cluster's sharding configuration.
107
107
Disabling Balancer for Collections in Filtered Sync
108
108
'''''''''''''''''''''''''''''''''''''''''''''''''''
109
109
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
112
113
starting ``mongosync``. These instructions allow you to enable the balancer
113
114
for the source cluster and disable the balancer for collections
114
115
within the namespace filter.
115
116
116
117
.. procedure::
118
+ :style: normal
117
119
118
120
.. step:: Enable the balancer for the source cluster.
119
121
@@ -126,7 +128,7 @@ within the namespace filter.
126
128
Disable the balancer for each collection within the
127
129
namespace filter by running the :dbcommand:`setAllowMigrations` command:
128
130
129
- .. code-block:: shell
131
+ .. code-block:: javascript
130
132
131
133
db.adminCommand(
132
134
{
You can’t perform that action at this time.
0 commit comments