-
Notifications
You must be signed in to change notification settings - Fork 39
DOCSP-38149 Add documentation for mongosync cutover processs #292
Conversation
1eef645 to
2a455bf
Compare
2a455bf to
e1f0226
Compare
tdq45gj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some comments. We swapped step 3 and step 4 in the draft doc on Monday. Sorry if it caused confusion!
source/reference/cutover-process.txt
Outdated
| Ensure that the ``mongosync`` process response for the | ||
| ``commit`` request indicates that the ``mongosync`` state is | ||
| ``COMMITTING`` or ``COMMITTED``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we clarify in the note that the state is COMMITTING or COMMITTED after sending the commit request?
source/reference/cutover-process.txt
Outdated
| Call the :ref:`progress <c2c-api-progress>` endpoint to determine | ||
| if ``canWrite`` is ``true``. If ``canWrite`` is ``false``, wait | ||
| until :ref:`progress <c2c-api-progress>` shows ``canWrite`` is | ||
| ``true``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The purpose of this step (checking canWrite=true) is to check the prerequisite to enable application writes. Enable application writes on the destination cluster should be immediately after this step.
source/reference/cutover-process.txt
Outdated
|
|
||
| When the ``mongosync`` progress response indicates that the | ||
| ``mongosync`` state is ``COMMITTED``, the cutover process is | ||
| complete. You can now :ref:`reverse <c2c-api-reverse>` the sync |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverse is not a step of the cutover process. It's an option for users to fall back to use the source after the cutover process. Most users wouldn't need it. Right now it seems to be a required action in step 6. Can we clarify that it's an option after the cutover process, not a necessary step, or remove this information if you feel it doesn't fit into this page?
d8cc841 to
08d00cf
Compare
tdq45gj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current sequence of steps still doesn't seem correct to me. The sequence should be:
- Verify the status of the mongosync process.
- Stop any write operations to the synced collections on the source
- Send a commit request to mongosync.
- Wait for
canWriteto become true - Enable application writes on the destination cluster.
- Call the progress endpoint to determine the status of the mongosync process.
source/reference/cutover-process.txt
Outdated
| that write operations are stopped for the collections included | ||
| by the filter. | ||
|
|
||
| .. step:: Call the :ref:`progress <c2c-api-progress>` endpoint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change: Wait for canWrite to become true.
tdq45gj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
jmd-mongo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this addition, @kanchana-mongodb! I've left some suggestions and a question for your consideration.
Thank you!
Joe
source/reference/cutover-process.txt
Outdated
|
|
||
| .. step:: Wait until you can perform writes on the destination cluster. | ||
|
|
||
| Call the :ref:`progress <c2c-api-progress>` endpoint to determine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[linking suggestion]
Consider using backticks around "progress" instead of linking as this is already linked above.
source/reference/cutover-process.txt
Outdated
|
|
||
| .. step:: Enable application writes on the destination cluster. | ||
|
|
||
| .. step:: Call the :ref:`progress <c2c-api-progress>` endpoint to determine the status of the ``mongosync`` process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar comment as on line 67.
source/reference/cutover-process.txt
Outdated
|
|
||
| Call the :ref:`progress <c2c-api-progress>` endpoint to determine | ||
| if ``canWrite`` is ``true``. If ``canWrite`` is ``false``, wait | ||
| until :ref:`progress <c2c-api-progress>` shows ``canWrite`` is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simliar comment as on line 67.
| until :ref:`progress <c2c-api-progress>` shows ``canWrite`` is | ||
| ``true``. | ||
|
|
||
| .. step:: Enable application writes on the destination cluster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[question]
Should there be a code example or blurb here showing how to enable writes on the destination cluster?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
jmd-mongo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for these changes, @kanchana-mongodb! This issue LGTM mod a minor code formatting nit.
Thank you!
Joe
|
|
||
| .. code-block:: javascript | ||
|
|
||
| db.adminCommand( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[code formatting suggestion]
I recommend using formatting similar to the following. It's a minor change to be less indented.
db.adminCommand(
{
setUserWriteBlockMode: 1,
global: false
}
)
| until :ref:`progress <c2c-api-progress>` shows ``canWrite`` is | ||
| ``true``. | ||
|
|
||
| .. step:: Enable application writes on the destination cluster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
2979c8e to
57d14e7
Compare
Uh oh!
There was an error while loading. Please reload this page.