File tree Expand file tree Collapse file tree 9 files changed +28
-29
lines changed Expand file tree Collapse file tree 9 files changed +28
-29
lines changed Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ during sync:
14
14
- The maximum collection size is 1PB.
15
15
16
16
``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.
Original file line number Diff line number Diff line change @@ -170,10 +170,10 @@ Follow the instructions below to set up {+c2c-product-name+}.
170
170
Initialize ``mongosync``
171
171
------------------------
172
172
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):
177
177
178
178
.. code-block:: shell
179
179
@@ -287,15 +287,9 @@ Synchronization Notes
287
287
<c2c-mongosync>`
288
288
289
289
- ``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.
299
293
300
294
- .. include:: /includes/fact-permissions-body.rst
301
295
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ Pauses the current synchronization operation.
21
21
Requirement
22
22
-----------
23
23
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.
26
26
27
27
.. note::
28
28
Original file line number Diff line number Diff line change 15
15
Description
16
16
-----------
17
17
18
- Returns the status of the synchronization process.
18
+ Returns either an updated status of the synchronization process or an error .
19
19
20
20
Request
21
21
-------
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ destination cluster.
22
22
Requirement
23
23
-----------
24
24
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.
27
27
28
28
.. note::
29
29
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ To use the ``reverse`` endpoint:
43
43
44
44
You cannot update these options after the sync starts.
45
45
- ``mongosync`` must be in the ``COMMITTED`` state.
46
- - Source and destination clusters must be MongoDB 6.0 or later.
47
46
- :ref:`index-type-unique` require proper formatting. Collections with indexes
48
47
initially created on MongoDB 4.2 may not have the proper formatting.
49
48
Original file line number Diff line number Diff line change @@ -464,9 +464,8 @@ Indexes that are always built include:
464
464
* ``mongosync`` builds an index on the ``_id`` field of every
465
465
collection it copies.
466
466
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.
471
470
472
471
Original file line number Diff line number Diff line change @@ -50,15 +50,19 @@ operations in that state.
50
50
- - ``POST`` :ref:`/start <c2c-api-start>`
51
51
- ``GET`` :ref:`/progress <c2c-api-progress>`
52
52
53
- * - ``RUNNING``
53
+ * - .. _c2c-state-running:
54
+
55
+ ``RUNNING``
54
56
- The sync process is currently running. In this state, data is
55
57
initially synced to the destination cluster. Subsequent writes to
56
58
the source cluster are applied to the destination cluster.
57
59
- - ``POST`` :ref:`/pause <c2c-api-pause>`
58
60
- ``POST`` :ref:`/commit <c2c-api-commit>`
59
61
- ``GET`` :ref:`/progress <c2c-api-progress>`
60
62
61
- * - ``PAUSED``
63
+ * - .. _c2c-state-paused:
64
+
65
+ ``PAUSED``
62
66
- The sync process is paused. To resume the sync process, send a
63
67
request to the :ref:`/resume <c2c-api-resume>` endpoint.
64
68
- - ``POST`` :ref:`/resume <c2c-api-resume>`
@@ -74,7 +78,10 @@ operations in that state.
74
78
<c2c-api-progress>` endpoint.
75
79
- - ``GET`` :ref:`/progress <c2c-api-progress>`
76
80
77
- * - ``COMMITTED``
81
+ * - .. _c2c-state-committed:
82
+
83
+ ``COMMITTED``
78
84
- The cutover for the sync process is complete.
79
85
- - ``GET`` :ref:`/progress <c2c-api-progress>`
80
86
- ``GET`` :ref:`/reverse <c2c-api-reverse>`
87
+
Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ Release Notes for mongosync 1.5
20
20
21
21
**July 25, 2023**
22
22
23
- Oplog Rollover Resiliency
23
+ Oplog Rollover Resilience
24
24
~~~~~~~~~~~~~~~~~~~~~~~~~
25
25
26
26
Starting in 1.5.0, ``mongosync`` begins to apply changes while the
27
27
initial sync is still in progress. By starting to apply changes earlier,
28
28
``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
30
30
of ``oplog`` rollover, and significantly lowers the risk of restarting
31
31
the sync.
32
32
You can’t perform that action at this time.
0 commit comments