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-45263-adding-reverse-tutorial #481
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d8673da
DOCSP-45263-adding-reverse-tutorial
ltran-mdb2 ceb4b3c
DOCSP-45263-adding-reverse-tutorial
ltran-mdb2 f6f5903
DOCSP-45263-adding-reverse-tutorial
ltran-mdb2 ad919d4
DOCSP-45263-adding-reverse-tutorial
ltran-mdb2 83980b5
DOCSP-45263-adding-reverse-tutorial
ltran-mdb2 bb5d6f0
DOCSP-45263-adding-reverse-tutorial
ltran-mdb2 4fd575a
DOCSP-45263-adding-reverse-tutorial
ltran-mdb2 70787c3
DOCSP-45263 copy edits
ltran-mdb2 0d1c329
DOCSP-45263 copy edits
ltran-mdb2 f5a0451
DOCSP-45263 adding note on multiple mongosyncs page
ltran-mdb2 0c6e22b
DOCSP-45263 tech edit
ltran-mdb2 9e73662
DOCSP-45263 tech edit
ltran-mdb2 b2c86d0
DOCSP-45263 linking reverse to cutover
ltran-mdb2 559f690
DOCSP-45263 fixing build
ltran-mdb2 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
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
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 |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| .. _c2c-reverse-process: | ||
|
|
||
| ====================== | ||
| Reverse Sync Direction | ||
| ====================== | ||
|
|
||
| .. default-domain:: mongodb | ||
|
|
||
| .. contents:: On this page | ||
| :local: | ||
| :backlinks: none | ||
| :class: singlecol | ||
| :depth: 1 | ||
|
|
||
| To reverse the direction of a sync operation, use the following | ||
|
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. it'd be helpful to add a note on why one might use reverse. E.g., the note we have here https://www.mongodb.com/docs/cluster-to-cluster-sync/current/reference/mongosync/mongosync-behavior/#considerations-for-continuous-sync |
||
| procedure to :ref:`commit your sync <c2c-cutover-process>` and call the | ||
| ``reverse`` endpoint. | ||
|
|
||
| Reversing sync allows you to keep clusters in continuous sync after you | ||
| commit. After you commit a sync, you can't resume continuous sync between | ||
| two clusters since ``mongosync`` can only sync into empty destination | ||
| clusters. If you need to use the same two clusters after cutover, you | ||
| can call the ``reverse`` endpoint to keep the clusters in sync. | ||
|
|
||
| Before You Begin | ||
| ---------------- | ||
|
|
||
| Before you can reverse your sync direction, you must configure | ||
| ``mongosync`` and use the :ref:`c2c-api-start` endpoint to set the | ||
| following parameters: | ||
|
|
||
| - ``reversible`` to ``true`` | ||
| - ``enableUserWriteBlocking`` to ``true``. | ||
|
|
||
| For more information on limitations and requirements of reversing sync, | ||
| see :ref:`c2c-api-reverse`. | ||
|
|
||
| Steps | ||
| ----- | ||
|
|
||
| Use these steps to reverse the direction of your sync: | ||
|
|
||
| .. procedure:: | ||
| :style: normal | ||
|
|
||
| .. step:: Finalize your sync. | ||
|
|
||
| Follow the :ref:`c2c-cutover-process` tutorial to enable write | ||
| blocking and finalize your data migration. | ||
|
|
||
| :gold:`IMPORTANT:` ``mongosync`` does not support | ||
| :ref:`c2c-filtered-sync` during the reverse sync process. | ||
|
|
||
| .. step:: Call the ``reverse`` endpoint. | ||
|
|
||
| Call the ``reverse`` endpoint to reverse the direction of your sync | ||
| operation. Your original source cluster becomes your new destination cluster | ||
| and your original destination cluster becomes your new source cluster. | ||
|
|
||
| ``mongosync`` replicates all writes that you performed on your new | ||
| source cluster after you unblocked writes (during step 4 of the | ||
| :ref:`c2c-cutover-process`) to the | ||
| new destination cluster. | ||
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.