File tree Expand file tree Collapse file tree 4 files changed +33
-5
lines changed Expand file tree Collapse file tree 4 files changed +33
-5
lines changed Original file line number Diff line number Diff line change 55
55
writes on the source cluster. The time difference becomes zero
56
56
when ``mongosync `` commits the migration.
57
57
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
+
58
67
* - ``collectionCopy ``
59
68
- object
60
69
- Estimates the total amount of data being copied from collections and the
Original file line number Diff line number Diff line change @@ -64,7 +64,25 @@ Behavior
64
64
65
65
- The endpoint does not auto-refresh. To get updated status, call the
66
66
``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
+
68
86
.. include:: /includes/fact-restart-resume-delay.rst
69
87
70
88
Endpoint Protection
Original file line number Diff line number Diff line change @@ -452,9 +452,10 @@ Indexes that are always built include:
452
452
* ``mongosync`` builds an index on the ``_id`` field of every
453
453
collection it copies.
454
454
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.
458
459
459
460
460
461
Endpoint Protection
Original file line number Diff line number Diff line change @@ -29,11 +29,11 @@ The data ``mongosync`` reports includes:
29
29
- The estimated number of bytes ``mongosync`` copies
30
30
- The estimated number of events ``mongosync`` applies
31
31
- The request body sent to :ref:`c2c-api-start` calls
32
+ - Hostnames
32
33
33
34
``mongosync`` does not track:
34
35
35
36
- IP addresses
36
- - Hostnames
37
37
- Usernames
38
38
- Login credentials
39
39
- Connection strings
You can’t perform that action at this time.
0 commit comments