This repository was archived by the owner on May 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 6
6
the cluster level and for collections outside the namespace filter.
7
7
You must also stop the destination cluster's balancer.
8
8
9
- If you enable the source cluster's balancer but do not use a
10
- namespace filter, or if you disable the balancer for all
11
- collections within the namespace filter, ``mongosync `` fails.
12
-
13
9
During migration, do not run the :dbcommand: `moveChunk ` or
14
10
:dbcommand: `moveRange ` commands. If you have enabled the source cluster's
15
11
balancer, but disabled it for collections within the namespace
16
12
filter, do not run :dbcommand: `shardCollection ` on collections
17
- within the namespace filter.
18
-
19
- To stop the balancer, run the :dbcommand: `balancerStop ` command
20
- and wait for the command to complete.
21
-
22
- After stopping the balancer, wait fifteen minutes before
23
- starting ``mongosync ``. This gives the cluster time to
24
- finish any in progress chunk migrations.
13
+ within the namespace filter. If you run :dbcommand: `shardCollection ` on
14
+ collections within the namespace filter during the migration, ``mongosync ``
15
+ returns an error and stops.
Original file line number Diff line number Diff line change @@ -125,6 +125,17 @@ namespace filter by running the :dbcommand:`setAllowMigrations` command:
125
125
Run the preceding command for every collection within the
126
126
namespace filter.
127
127
128
+ Then, run the :dbcommand:`balancerStop` command to stop
129
+ the balancer on the destination cluster and wait for the command to complete.
130
+
131
+ After stopping the balancer, wait fifteen minutes before
132
+ starting ``mongosync``. This gives the cluster time to
133
+ finish any in progress chunk migrations.
134
+
135
+ If you enable the source cluster's balancer but do not use a
136
+ namespace filter, or if you disable the balancer for all
137
+ collections within the namespace filter, ``mongosync`` fails.
138
+
128
139
Pre-Split Chunks
129
140
''''''''''''''''
130
141
You can’t perform that action at this time.
0 commit comments