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

DOCSP-48515-Source-destination-balancing #678

Merged
merged 7 commits into from
Mar 26, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions source/reference/mongosync/mongosync-behavior.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ destination cluster.
Chunk Distribution
''''''''''''''''''

.. important::

Even if ``mongosync`` balances the source cluster, it does not

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this language might be a little confusing–mongosync itself doesn't balance the source cluster, it's really that the source cluster was balanced prior to mongosync. This might read better if use the language from the jira ticket like "preserve chunk distribution from the source to the destination", because I think what we're really saying is that even if the source is balanced before mongosync, mongosync doesn't guarantee the destination cluster will be balanced.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, agree with Nick

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The distinction we want to draw is, even if the source cluster is itself already properly balanced prior to mongosync being called, this pre-existing balance does not help the destination cluster get balanced because mongosync does not preserve the sharding config

necessarily balance the destination cluster.

``mongosync`` does not preserve chunk distribution from the source to
the destination, even with multiple ``mongosync`` instances. It is not
possible to reproduce a particular pre-split of chunks from a source
Expand Down