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

Commit 5eb6612

Browse files
committed
feedback
1 parent 77494ff commit 5eb6612

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

source/includes/fact-mongosync-balancer.rst

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,10 @@
66
the cluster level and for collections outside the namespace filter.
77
You must also stop the destination cluster's balancer.
88

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-
139
During migration, do not run the :dbcommand:`moveChunk` or
1410
:dbcommand:`moveRange` commands. If you have enabled the source cluster's
1511
balancer, but disabled it for collections within the namespace
1612
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.

source/reference/mongosync/mongosync-behavior.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,17 @@ namespace filter by running the :dbcommand:`setAllowMigrations` command:
125125
Run the preceding command for every collection within the
126126
namespace filter.
127127

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+
128139
Pre-Split Chunks
129140
''''''''''''''''
130141

0 commit comments

Comments
 (0)