@@ -25,9 +25,6 @@ to synchronize data between them. The tool that makes the connection is
25
25
you get started with {+c2c-product-name+}. For more details, please see
26
26
the rest of the {+c2c-product-name+} documentation.
27
27
28
- Setup
29
- -----
30
-
31
28
``mongosync`` syncs data between two clusters.
32
29
33
30
- Each cluster can be a replica set or a sharded cluster. If either
@@ -41,14 +38,11 @@ Setup
41
38
meets the minimum patch :ref:`version requirements
42
39
<c2c-server-version-compatibility>`.
43
40
44
- To run ``mongosync``, you need to:
41
+ Follow the instructions below to set up {+c2c-product-name+}, connect
42
+ your clusters, and synchronize your data.
45
43
46
- #. Define a source and a destination cluster.
47
- #. Define administrative users.
48
- #. Download and install ``mongosync``.
49
- #. Connect the clusters.
50
-
51
- Follow the instructions below to set up {+c2c-product-name+}.
44
+ Setup
45
+ -----
52
46
53
47
.. procedure::
54
48
:style: normal
@@ -142,7 +136,13 @@ Follow the instructions below to set up {+c2c-product-name+}.
142
136
For operating system specific installation instructions, see
143
137
:ref:`c2c-install`.
144
138
145
- .. step:: Connect the Clusters
139
+ Connect the Clusters
140
+ --------------------
141
+
142
+ .. procedure::
143
+ :style: normal
144
+
145
+ .. step:: Format your connection strings
146
146
147
147
A connection string contains the network and authentication
148
148
details that ``mongosync`` needs to connect to the source and
@@ -169,20 +169,20 @@ Follow the instructions below to set up {+c2c-product-name+}.
169
169
170
170
For more details, see :ref:`c2c-connecting`.
171
171
172
- Initialize ``mongosync``
173
- ------------------------
172
+ .. step:: Initialize mongosync
174
173
175
- :program:`mongosync` must create an initial connection to the source and
176
- destination clusters before it can start to sync data. To create the initial
177
- connection, issue the following command on a single line (the command is
178
- reformatted here for clarity):
174
+ :program:`mongosync` must create an initial connection to the source and
175
+ destination clusters before it can start to sync data. To create the initial
176
+ connection, issue the following command with your connection
177
+ strings on a single line (the command is
178
+ reformatted here for clarity):
179
179
180
- .. code-block:: shell
180
+ .. code-block:: shell
181
181
182
- ./bin/mongosync \
183
- --logPath /var/log/mongosync \
184
- --cluster0 "mongodb://clusterAdmin:
[email protected] :20020,clusterOne02.fancyCorp.com:20020,clusterOne03.fancyCorp.com:20020" \
185
- --cluster1 "mongodb://clusterAdmin:
[email protected] :20020,clusterTwo02.fancyCorp.com:20020,clusterTwo03.fancyCorp.com:20020"
182
+ ./bin/mongosync \
183
+ --logPath /var/log/mongosync \
184
+ --cluster0 "mongodb://clusterAdmin:
[email protected] :20020,clusterOne02.fancyCorp.com:20020,clusterOne03.fancyCorp.com:20020" \
185
+ --cluster1 "mongodb://clusterAdmin:
[email protected] :20020,clusterTwo02.fancyCorp.com:20020,clusterTwo03.fancyCorp.com:20020"
186
186
187
187
Initialization Notes
188
188
~~~~~~~~~~~~~~~~~~~~
0 commit comments