14
14
15
15
16
16
``mongosync`` enters different states depending on the requests it
17
- receives. This page describes the states that ``mongosync`` can be in.
18
- ``mongosync`` is in a single state at a particular time. The possible
19
- API operations you can run depend on the state of ``mongosync``.
17
+ receives. ``mongosync`` can only be in a single state at a given time.
18
+ The current ``mongosync`` states determines which API operations you can
19
+ run.
20
+
21
+ This page describes ``mongosync`` states.
20
22
21
23
View the Current State
22
24
----------------------
23
25
24
- To view the current state of ``mongosync``, use the
25
- :ref:`/progress <c2c-api-progress>`. endpoint. The endpoint returns the
26
- state in the ``state`` field.
26
+ To view the current state of ``mongosync``, use the :ref:`/progress
27
+ <c2c-api-progress>`. endpoint. The :ref:`/progress <c2c-api-progress>`
28
+ endpoint returns the state in the ``state`` field.
27
29
28
30
.. _c2c-states-descriptions:
29
31
30
32
State Descriptions
31
33
------------------
32
34
33
- The following table describes each state and the operations you can run
34
- when ``mongosync`` is in a given state.
35
+ The following table describes each state and lists the permitted
36
+ operations in that state.
35
37
36
38
.. list-table::
37
39
:header-rows: 1
@@ -49,8 +51,8 @@ when ``mongosync`` is in a given state.
49
51
50
52
* - ``RUNNING``
51
53
- The sync process is currently running. In this state, data is
52
- initially synced to the destination cluster, and subsequent
53
- writes are applied.
54
+ initially synced to the destination cluster. Subsequent writes to
55
+ the source cluster are applied to the destination cluster .
54
56
- - ``POST`` :ref:`/pause <c2c-api-pause>`
55
57
- ``POST`` :ref:`/commit <c2c-api-commit>`
56
58
- ``GET`` :ref:`/progress <c2c-api-progress>`
@@ -64,9 +66,9 @@ when ``mongosync`` is in a given state.
64
66
* - ``COMMITTING``
65
67
- The cutover for the sync process has started. The time it takes
66
68
to transition to the ``COMMITTED`` phase depends on
67
- ``lagTimeSeconds``. To monitor ``lagTimeSeconds`` or see if
68
- ``mongosync`` has finished committing, use the
69
- :ref:`/progress <c2c-api-progress>` endpoint.
69
+ ``lagTimeSeconds``. To monitor ``lagTimeSeconds`` or to see if
70
+ ``mongosync`` has finished committing, use the :ref:`/progress
71
+ <c2c-api-progress>` endpoint.
70
72
- - ``GET`` :ref:`/progress <c2c-api-progress>`
71
73
72
74
* - ``COMMITTED``
0 commit comments