Skip to content

Commit 40e5615

Browse files
jwilson-mdbjtcovan
andauthored
DOCSP-41853 Updates mongosync documentation to support 1.8 release (#362)
* Updates documentation for 1.8 * Update source/reference/api/progress.txt Co-authored-by: Jessica <[email protected]> --------- Co-authored-by: Jessica <[email protected]>
1 parent d4de90d commit 40e5615

File tree

4 files changed

+33
-5
lines changed

4 files changed

+33
-5
lines changed

source/includes/api/tables/progress-response.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@
5555
writes on the source cluster. The time difference becomes zero
5656
when ``mongosync`` commits the migration.
5757

58+
* - ``totalEventsApplied``
59+
- integer
60+
- The approximate number of change events this instance of
61+
``mongosync`` has applied to the destination cluster.
62+
63+
This value may not be an accurate representation of the total
64+
number of events because it is not persisted and it omits
65+
certain events from the count.
66+
5867
* - ``collectionCopy``
5968
- object
6069
- Estimates the total amount of data being copied from collections and the

source/reference/api/progress.txt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,25 @@ Behavior
6464

6565
- The endpoint does not auto-refresh. To get updated status, call the
6666
``progress`` endpoint again.
67-
67+
68+
- Calls to ``/progress`` before ``mongosync`` reaches the collection
69+
copy phase return 0 for ``estimatedCopiedBytes`` and 1 for
70+
``estimatedTotalBytes``.
71+
72+
- ``estimatedTotalBytes`` may change throughout the collection copy
73+
phase if documents are inserted or deleted on the source cluster.
74+
75+
- ``estimatedCopiedBytes`` is never greater than
76+
``estimatedTotalBytes``. Progress reaches 100% at the end of the
77+
collection copy phase (``estimatedCopiedBytes`` =
78+
``estimatedTotalBytes``).
79+
80+
- When performing a live upgrade from an earlier version to 1.8.0 or
81+
higher, the collection copy data starts over from
82+
``[0 bytes copied / 1 bytes total]``. After a live upgrade,
83+
``/progress`` only reports the progress of data copied after the
84+
upgrade completed.
85+
6886
.. include:: /includes/fact-restart-resume-delay.rst
6987

7088
Endpoint Protection

source/reference/api/start.txt

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

455-
* ``mongosync`` builds dummy indexes that support the shard key for each
456-
sharded collection, which are removed after commit. When ``buildIndexes`` is
457-
set to ``never``, ``mongosync`` retains this index after commit.
455+
* ``mongosync`` builds dummy indexes for each sharded collection that
456+
does not have an index to support the shard key on the destination
457+
cluster. When ``buildIndexes`` is set to ``never``, ``mongosync``
458+
retains this index after commit.
458459

459460

460461
Endpoint Protection

source/reference/telemetry.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ The data ``mongosync`` reports includes:
2929
- The estimated number of bytes ``mongosync`` copies
3030
- The estimated number of events ``mongosync`` applies
3131
- The request body sent to :ref:`c2c-api-start` calls
32+
- Hostnames
3233

3334
``mongosync`` does not track:
3435

3536
- IP addresses
36-
- Hostnames
3737
- Usernames
3838
- Login credentials
3939
- Connection strings

0 commit comments

Comments
 (0)