@@ -102,39 +102,56 @@ preserve the source cluster's sharding configuration.
102
102
103
103
.. include:: /includes/fact-mongosync-balancer.rst
104
104
105
- .. _enabling-balancer-filtered:
106
-
107
- Enabling Balancer in Filtered Sync
108
- ''''''''''''''''''''''''''''''''''
109
-
110
- Before starting ``mongosync`` with a :ref:`namespace filter
111
- <c2c-filtered-sync>`, enable the balancer for the source cluster
112
- by running the :method:`sh.startBalancer()` method in ``mongosh``.
113
- Then, disable the balancer for each collection within the
114
- namespace filter by running the :dbcommand:`setAllowMigrations` command:
115
-
116
- .. code-block:: shell
117
-
118
- db.adminCommand(
119
- {
120
- setAllowMigrations: “<db>.<collection>”,
121
- allowMigrations: false
122
- }
123
- )
124
-
125
- Run the preceding command for every collection within the
126
- namespace filter.
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.
105
+ .. _disabling-balancer-filtered:
106
+
107
+ Disabling Balancer for Collections in Filtered Sync
108
+ '''''''''''''''''''''''''''''''''''''''''''''''''''
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
112
+ starting ``mongosync``. These instructions allow you to enable the balancer
113
+ for the source cluster and disable the balancer for collections
114
+ within the namespace filter.
115
+
116
+ .. procedure::
117
+
118
+ .. step:: Enable the balancer for the source cluster.
119
+
120
+ Before starting ``mongosync`` with a :ref:`namespace filter
121
+ <c2c-filtered-sync>`, enable the balancer for the source cluster
122
+ by running the :method:`sh.startBalancer()` method in ``mongosh``.
123
+
124
+ .. step:: Disable the balancer for each collection.
125
+
126
+ Disable the balancer for each collection within the
127
+ namespace filter by running the :dbcommand:`setAllowMigrations` command:
128
+
129
+ .. code-block:: shell
130
+
131
+ db.adminCommand(
132
+ {
133
+ setAllowMigrations: “<db>.<collection>”,
134
+ allowMigrations: false
135
+ }
136
+ )
137
+
138
+ Run the preceding command for every collection within the
139
+ namespace filter.
140
+
141
+ .. step:: Stop the balancer on the destination cluster.
142
+
143
+ Run the :dbcommand:`balancerStop` command to stop
144
+ the balancer on the destination cluster and wait
145
+ for the command to complete.
146
+ After stopping the balancer, wait **fifteen minutes** before
147
+ starting ``mongosync``. This gives the cluster time to
148
+ finish any in progress chunk migrations.
149
+
150
+ .. important::
151
+
152
+ If you enable the source cluster's balancer but do not use a
153
+ namespace filter, or if you do not disable the balancer for all
154
+ collections within the namespace filter, ``mongosync`` fails.
138
155
139
156
Pre-Split Chunks
140
157
''''''''''''''''
0 commit comments