@@ -27,36 +27,18 @@ State
27
27
To use the ``start`` endpoint, ``mongosync`` must be in the ``IDLE``
28
28
state.
29
29
30
- User Write Blocking
31
- ~~~~~~~~~~~~~~~~~~~
32
-
33
- .. include:: /includes/fact-write-blocking-requirement.rst
34
-
35
- To set a custom role for the ``mongosync`` user:
36
-
37
- #. To create a custom role, use the :dbcommand:`createRole` command:
38
-
39
- .. code-block:: javascript
40
-
41
- db.adminCommand( {
42
- createRole: "reverseSync",
43
- privileges: [ {
44
- resource: { db: "", collection: "" },
45
- actions: [ "setUserWriteBlockMode", "bypassWriteBlockingMode" ]
46
- } ],
47
- roles: []
48
- } )
49
-
50
- #. To grant the custom role to the ``mongosync`` user, use the :dbcommand:`grantRolesToUser` command:
30
+ Permissions
31
+ ~~~~~~~~~~~
51
32
52
- .. code-block:: javascript
33
+ The user specified in the ``mongosync`` connection string must have the
34
+ required permissions on the source and destination clusters. Refer to
35
+ :ref:`c2c-permissions-and-roles` to ensure that the user has the correct
36
+ permissions to start the synchronization.
53
37
54
- db.adminCommand( {
55
- grantRolesToUser: "mongosync-user",
56
- roles: [ { role: "reverseSync", db: "admin" } ]
57
- } )
38
+ Multiple ``mongosync`` Instances
39
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
58
40
59
- Ensure that you use this configured ``mongosync`` user in the connection
41
+ Ensure that you use the configured ``mongosync`` user in the connection
60
42
strings for the :setting:`cluster0` or :setting:`cluster1` settings when
61
43
you start ``mongosync``.
62
44
0 commit comments