Skip to content

Commit 82c3f5f

Browse files
authored
DOCSP-33889 Various C2C Improvements (#171) (#269)
* DOCSP-33889 Various improvements to C2C Docs * Various improvements * Various improvements * Various improvements * Various improvements * Fixes build warning * Fixes build warning * Fixes build warning * Fixes build warning * Fixes per Jeff * Fixes typo
1 parent 46558be commit 82c3f5f

File tree

9 files changed

+28
-29
lines changed

9 files changed

+28
-29
lines changed

source/includes/collections/behavior-capped-collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ during sync:
1414
- The maximum collection size is 1PB.
1515

1616
``mongosync`` restores the original values for maximum number of
17-
documents and maximum document size during commit.
17+
documents and maximum document size during commit.

source/quickstart.txt

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ Follow the instructions below to set up {+c2c-product-name+}.
170170
Initialize ``mongosync``
171171
------------------------
172172

173-
``mongosync`` must create an initial connection to the source and
174-
destination clusters before it can start to sync data. To create the
175-
initial connection, issue the following command on a single line (the
176-
command is reformated here for clarity):
173+
:program:`mongosync` must create an initial connection to the source and
174+
destination clusters before it can start to sync data. To create the initial
175+
connection, issue the following command on a single line (the command is
176+
reformatted here for clarity):
177177

178178
.. code-block:: shell
179179

@@ -287,15 +287,9 @@ Synchronization Notes
287287
<c2c-mongosync>`
288288

289289
- ``mongosync`` can swap the source and destination clusters to enable
290-
:ref:`reverse synchronization <c2c-api-reverse>`. To use ``reverse
291-
synchronization``, you must pass these additional fields when you
292-
start ``mongosync``:
293-
294-
- ``reverse``
295-
- ``enableUserWriteBlocking``
296-
297-
.. literalinclude:: /includes/api/requests/reverse.sh
298-
:language: shell
290+
:ref:`reverse synchronization <c2c-api-reverse>`.
291+
292+
For more information, see the :ref:`c2c-api-reverse` endpoint.
299293

300294
- .. include:: /includes/fact-permissions-body.rst
301295

source/reference/api/pause.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Pauses the current synchronization operation.
2121
Requirement
2222
-----------
2323

24-
To use the ``pause`` endpoint, ``mongosync`` must be in the ``RUNNING``
25-
state.
24+
To use the ``pause`` endpoint, ``mongosync`` must be in the :ref:`RUNNING
25+
<c2c-state-running>` state.
2626

2727
.. note::
2828

source/reference/api/progress.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Description
1616
-----------
1717

18-
Returns the status of the synchronization process.
18+
Returns either an updated status of the synchronization process or an error.
1919

2020
Request
2121
-------

source/reference/api/resume.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ destination cluster.
2222
Requirement
2323
-----------
2424

25-
To use the ``resume`` endpoint, ``mongosync`` must be in the ``PAUSED``
26-
state.
25+
To use the ``resume`` endpoint, ``mongosync`` must be in the :ref:`PAUSED
26+
<c2c-state-paused>` state.
2727

2828
.. note::
2929

source/reference/api/reverse.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ To use the ``reverse`` endpoint:
4343

4444
You cannot update these options after the sync starts.
4545
- ``mongosync`` must be in the ``COMMITTED`` state.
46-
- Source and destination clusters must be MongoDB 6.0 or later.
4746
- :ref:`index-type-unique` require proper formatting. Collections with indexes
4847
initially created on MongoDB 4.2 may not have the proper formatting.
4948

source/reference/api/start.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,8 @@ Indexes that are always built include:
464464
* ``mongosync`` builds an index on the ``_id`` field of every
465465
collection it copies.
466466

467-
* Starting in MongoDB 6.0, ``mongosync`` builds dummy indexes that support
468-
the shard key for each sharded collection, which are removed after commit.
469-
When ``buildIndexes`` is set to ``never``, ``mongosync`` retains this
470-
index after commit.
467+
* ``mongosync`` builds dummy indexes that support the shard key for each
468+
sharded collection, which are removed after commit. When ``buildIndexes`` is
469+
set to ``never``, ``mongosync`` retains this index after commit.
471470

472471

source/reference/mongosync-states.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,19 @@ operations in that state.
5050
- - ``POST`` :ref:`/start <c2c-api-start>`
5151
- ``GET`` :ref:`/progress <c2c-api-progress>`
5252

53-
* - ``RUNNING``
53+
* - .. _c2c-state-running:
54+
55+
``RUNNING``
5456
- The sync process is currently running. In this state, data is
5557
initially synced to the destination cluster. Subsequent writes to
5658
the source cluster are applied to the destination cluster.
5759
- - ``POST`` :ref:`/pause <c2c-api-pause>`
5860
- ``POST`` :ref:`/commit <c2c-api-commit>`
5961
- ``GET`` :ref:`/progress <c2c-api-progress>`
6062

61-
* - ``PAUSED``
63+
* - .. _c2c-state-paused:
64+
65+
``PAUSED``
6266
- The sync process is paused. To resume the sync process, send a
6367
request to the :ref:`/resume <c2c-api-resume>` endpoint.
6468
- - ``POST`` :ref:`/resume <c2c-api-resume>`
@@ -74,7 +78,10 @@ operations in that state.
7478
<c2c-api-progress>` endpoint.
7579
- - ``GET`` :ref:`/progress <c2c-api-progress>`
7680

77-
* - ``COMMITTED``
81+
* - .. _c2c-state-committed:
82+
83+
``COMMITTED``
7884
- The cutover for the sync process is complete.
7985
- - ``GET`` :ref:`/progress <c2c-api-progress>`
8086
- ``GET`` :ref:`/reverse <c2c-api-reverse>`
87+

source/release-notes/1.5.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Release Notes for mongosync 1.5
2020

2121
**July 25, 2023**
2222

23-
Oplog Rollover Resiliency
23+
Oplog Rollover Resilience
2424
~~~~~~~~~~~~~~~~~~~~~~~~~
2525

2626
Starting in 1.5.0, ``mongosync`` begins to apply changes while the
2727
initial sync is still in progress. By starting to apply changes earlier,
2828
``mongosync`` maintains a more recent position in the :term:`oplog`.
29-
This adds resiliency to long-running operations, mitigates the risk
29+
This adds resilience to long-running operations, mitigates the risk
3030
of ``oplog`` rollover, and significantly lowers the risk of restarting
3131
the sync.
3232

0 commit comments

Comments
 (0)