Skip to content

Commit 8cc922f

Browse files
DOCSP-36175 Clarify mongosync's lagTimeSeconds field (#260)
* DOCSP-36175 Clarify mongosync's lagTimeSeconds field * Update source/includes/api/tables/progress-response.rst Co-authored-by: Alison Huh <[email protected]> --------- Co-authored-by: Alison Huh <[email protected]>
1 parent 63dc26f commit 8cc922f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,20 @@
4040

4141
* - ``lagTimeSeconds``
4242
- integer
43-
- Time in seconds between the last applied event and time of the
44-
current latest event for this instance of ``mongosync``.
43+
- Time difference in seconds between the latest event timestamp that
44+
``mongosync`` applied to the destination cluster and the latest
45+
timestamp on the source cluster for this instance of ``mongosync``.
4546

4647
.. note::
4748

4849
``mongosync`` performs periodic no-op writes on the source cluster,
4950
which may prevent the value of the ``lagTimeSeconds`` field from
50-
reaching zero.
51+
reaching zero until ``mongosync`` commits the migration.
52+
53+
Due to constant no-ops on the source cluster, the time difference
54+
is often a few seconds above zero, even if there are no real
55+
writes on the source cluster. The time difference becomes zero
56+
when ``mongosync`` commits the migration.
5157

5258
* - ``collectionCopy``
5359
- object

source/reference/api/progress.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Request
2828
Response
2929
--------
3030

31-
The ``progress`` endpoint returns etiher an updated status or an error.
31+
The ``progress`` endpoint returns either an updated status or an error.
3232

3333
Successful Response
3434
~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)