@@ -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
@@ -140,7 +134,13 @@ Follow the instructions below to set up {+c2c-product-name+}.
140
134
For operating system specific installation instructions, see
141
135
:ref:`c2c-install`.
142
136
143
- .. step:: Connect the Clusters
137
+ Connect the Clusters
138
+ --------------------
139
+
140
+ .. procedure::
141
+ :style: normal
142
+
143
+ .. step:: Format your connection strings
144
144
145
145
A connection string contains the network and authentication
146
146
details that ``mongosync`` needs to connect to the source and
@@ -167,20 +167,20 @@ Follow the instructions below to set up {+c2c-product-name+}.
167
167
168
168
For more details, see :ref:`c2c-connecting`.
169
169
170
- Initialize ``mongosync``
171
- ------------------------
170
+ .. step:: Initialize mongosync
172
171
173
- :program:`mongosync` must create an initial connection to the source and
174
- destination clusters before it can start to sync data. To create the initial
175
- connection, issue the following command on a single line (the command is
176
- reformatted here for clarity):
172
+ :program:`mongosync` must create an initial connection to the source and
173
+ destination clusters before it can start to sync data. To create the initial
174
+ connection, issue the following command with your connection
175
+ strings on a single line (the command is
176
+ reformatted here for clarity):
177
177
178
- .. code-block:: shell
178
+ .. code-block:: shell
179
179
180
- ./bin/mongosync \
181
- --logPath /var/log/mongosync \
182
- --cluster0 "mongodb://clusterAdmin:
[email protected] :20020,clusterOne02.fancyCorp.com:20020,clusterOne03.fancyCorp.com:20020" \
183
- --cluster1 "mongodb://clusterAdmin:
[email protected] :20020,clusterTwo02.fancyCorp.com:20020,clusterTwo03.fancyCorp.com:20020"
180
+ ./bin/mongosync \
181
+ --logPath /var/log/mongosync \
182
+ --cluster0 "mongodb://clusterAdmin:
[email protected] :20020,clusterOne02.fancyCorp.com:20020,clusterOne03.fancyCorp.com:20020" \
183
+ --cluster1 "mongodb://clusterAdmin:
[email protected] :20020,clusterTwo02.fancyCorp.com:20020,clusterTwo03.fancyCorp.com:20020"
184
184
185
185
Initialization Notes
186
186
~~~~~~~~~~~~~~~~~~~~
0 commit comments