32
32
.. procedure::
33
33
:style: normal
34
34
35
- .. step:: Verify the status of the `` mongosync`` process .
35
+ .. step:: Verify the status of mongosync.
36
36
37
37
Call the :ref:`progress <c2c-api-progress>` endpoint to determine
38
38
the status of ``mongosync`` before starting the cutover process.
@@ -64,29 +64,29 @@ Steps
64
64
65
65
.. step:: Stop any write operations to the synced collections on the source.
66
66
67
- - If you started ``mongosync`` with ``enableUserWriteBlocking``
67
+ - If you start ``mongosync`` with ``enableUserWriteBlocking``
68
68
set to ``true``, ``mongosync`` blocks all write operations on
69
69
the entire source cluster during the commit (step 4) for you.
70
70
- If you didn't start ``mongosync`` with
71
- ``enableUserWriteBlocking``, ensure that writes are disabled .
71
+ ``enableUserWriteBlocking``, ensure that you disable writes .
72
72
For example, run the :dbcommand:`setUserWriteBlockMode` command on the
73
73
source cluster:
74
74
75
75
.. code-block:: javascript
76
76
77
77
db.adminCommand( {
78
- setUserWriteBlockMode: 1,
79
- global: true
78
+ setUserWriteBlockMode: 1,
79
+ global: true
80
80
} )
81
81
82
82
- If ``mongosync`` uses filtered sync, it's not necessary to
83
- disable writes to the entire source cluster. But you must ensure
84
- that write operations are stopped for the collections included
85
- by the filter.
83
+ disable writes to the entire source cluster. However, you must ensure
84
+ that you stop write operations for the collections that the
85
+ filter includes .
86
86
87
87
.. step:: Send a :ref:`commit <c2c-api-commit>` request to ``mongosync``.
88
88
89
- If you started multiple ``mongosync`` instances for your
89
+ If you start multiple ``mongosync`` instances for your
90
90
migration, you must issue a commit request for each ``mongosync``
91
91
instance.
92
92
@@ -109,6 +109,8 @@ Steps
109
109
to ensure that the ``mongosync`` state is ``COMMITTING`` or
110
110
``COMMITTED``.
111
111
112
+ Once you complete this step, ``mongosync`` blocks writes on the source cluster.
113
+
112
114
.. step:: Wait until you can perform writes on the destination cluster.
113
115
114
116
Call the ``progress`` endpoint to determine if ``canWrite`` is
@@ -168,7 +170,7 @@ Steps
168
170
:language: json
169
171
170
172
"COMMITTED"
171
-
173
+
172
174
Behavior
173
175
--------
174
176
0 commit comments