|
1 |
| -``mongosync`` does not enable write-blocking by default. If you enable |
2 |
| -write-blocking, ``mongosync`` blocks writes: |
| 1 | +By default, ``mongosync`` enables destination-only |
| 2 | +write-blocking on the destination cluster. |
| 3 | +``mongosync`` unblocks writes right before the |
| 4 | +:ref:`/progress <c2c-api-progress>` endpoint reports |
| 5 | +that ``canWrite`` is ``true``. You can explicitly |
| 6 | +enable destination-only write-blocking by using |
| 7 | +the :ref:`/start <c2c-api-start>` endpoint to set |
| 8 | +``enableUserWriteBlocking`` to ``"destinationOnly"``. |
3 | 9 |
|
4 |
| -- On the destination cluster during sync. |
5 |
| -- On the source cluster when ``commit`` is received. |
| 10 | +You can enable dual write-blocking. |
| 11 | +If you enable dual write-blocking, ``mongosync`` blocks writes: |
6 | 12 |
|
7 |
| -To enable write-blocking, use the :ref:`start API <c2c-api-start>` |
8 |
| -to set ``enableUserWriteBlocking`` to ``true``. You cannot enable |
9 |
| -write-blocking after the sync starts. |
| 13 | +- On the destination cluster during the migration. ``mongosync`` |
| 14 | + unblocks writes right before it sets ``canWrite`` to ``true`` |
| 15 | +- On the source cluster after you call ``/commit`` |
| 16 | + |
| 17 | +To enable dual write-blocking, use :ref:`/start <c2c-api-start>` |
| 18 | +to set ``enableUserWriteBlocking`` to ``true``. |
| 19 | + |
| 20 | +You can use |
| 21 | +:ref:`/start <c2c-api-start>` |
| 22 | +to set ``enableUserWriteBlocking`` to ``false``. |
| 23 | + |
| 24 | +You cannot enable dual write-blocking or disable |
| 25 | +write-blocking after the sync starts. |
0 commit comments