This repository was archived by the owner on May 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
DOCSP-46644: Stop balancer on a per-collection basis #670
Merged
mayaraman19
merged 11 commits into
mongodb:master
from
mayaraman19:DOCSP-46644-stop-balancer
Mar 24, 2025
Merged
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
87a08e6
commit
mayaraman19 77494ff
small
mayaraman19 5eb6612
feedback
mayaraman19 8ac0409
error
mayaraman19 f1d0a43
feedback
mayaraman19 a2ab127
feedback and restructure
mayaraman19 21d08a5
tweaks
mayaraman19 f205361
little tweak
mayaraman19 f8975aa
feedback
mayaraman19 a2764e6
remove step
mayaraman19 cb5f4e0
feedback
mayaraman19 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -1,7 +1,16 @@ | ||||||||||
.. important:: | ||||||||||
|
||||||||||
When the source or destination cluster is a sharded cluster, you must stop | ||||||||||
the balancer on both clusters and not run the :dbcommand:`moveChunk` or | ||||||||||
:dbcommand:`moveRange` commands for the duration of the migration. To stop | ||||||||||
the balancer, run the :dbcommand:`balancerStop` command and wait for the | ||||||||||
command to complete. | ||||||||||
the source cluster's balancer on collections within the :ref:`namespace | ||||||||||
filter <c2c-filtered-sync>`. You can enable the source cluster's balancer on | ||||||||||
the cluster level and for collections outside the namespace filter. | ||||||||||
You must also stop the destination cluster's balancer. | ||||||||||
|
||||||||||
During migration, do not run the :dbcommand:`moveChunk` or | ||||||||||
:dbcommand:`moveRange` commands. If you have enabled the source cluster's | ||||||||||
balancer, but disabled it for collections within the namespace | ||||||||||
filter, do not run :dbcommand:`shardCollection` on collections | ||||||||||
within the namespace filter. If you run :dbcommand:`shardCollection` on | ||||||||||
collections within the namespace filter during the migration, ``mongosync`` | ||||||||||
Comment on lines
+27
to
+29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
If possible to make these two sentences into one I think it might be cleaner, but up to your judgement–if you like to be explicit "do not run X command" that's ok too. |
||||||||||
returns an error and stops, which requires you to start the migration | ||||||||||
from scratch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.