Skip to content

Commit cf864c4

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-23870 mongosync atlas (#89)
* DOCSP-23870-mongosync-atlas * DOCSP-23870-mongosync-atlas * DOCSP-23870-mongosync-atlas * DOCSP-23870-mongosync-atlas * DOCSP-23870-mongosync-atlas * DOCSP-23870-mongosync-atlas * DOCSP-23870-mongosync-atlas * DOCSP-23870-mongosync-atlas * DOCSP-23870-mongosync-atlas Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 58f8718 commit cf864c4

File tree

3 files changed

+37
-15
lines changed

3 files changed

+37
-15
lines changed

source/includes/example-connect.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,25 @@ following command on one line:
5050
clusterTwo02.fancyCorp.com:20020,
5151
clusterTwo03.fancyCorp.com:20020
5252
53+
Atlas clusters require TLS/SSL connections. To use ``mongosync`` with
54+
Atlas clusters, you add the :urioption:`ssl=true <ssl>` option. For
55+
example:
56+
57+
.. code-block:: shell
58+
59+
mongosync \
60+
--cluster0 'mongodb://clusterAdmin:[email protected]:20020,clusterOne02.fancyCorp.com:20020,clusterOne03.fancyCorp.com:20020/?ssl=true' \
61+
--cluster1 'mongodb://clusterAdmin:[email protected]:20020,clusterTwo02.fancyCorp.com:20020,clusterTwo03.fancyCorp.com:20020/?ssl=true'
62+
63+
You can also use ``mongodb+srv`` connection strings with ``mongosync``.
64+
You do not need to add the :urioption:`ssl=true <ssl>` option to a
65+
``mongodb+srv`` connection string. For example:
66+
67+
.. code-block:: shell
68+
69+
mongosync \
70+
--cluster0 'mongodb+srv://clusterAdmin:[email protected]:20020/' \
71+
--cluster1 'mongodb+srv://clusterAdmin:[email protected]:20020/'
72+
73+
For more details about ``mongodb+srv`` connection strings, see
74+
:ref:`connections-dns-seedlist`.

source/multiple-mongosyncs.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ Use ``curl`` or another HTTP client to issue the :ref:`start
151151

152152
.. code-block:: shell
153153

154-
curl monogsync01Host:27601/api/v1/start -XPOST --data \
154+
curl mongosync01Host:27601/api/v1/start -XPOST --data \
155155
'{ "source": "cluster0", "destination": "cluster1", \
156156
"reversible": false, "enableUserWriteBlocking": false }'
157157

158-
curl monogsync02Host:27602/api/v1/start -XPOST --data \
158+
curl mongosync02Host:27602/api/v1/start -XPOST --data \
159159
'{ "source": "cluster0", "destination": "cluster1", \
160160
"reversible": false, "enableUserWriteBlocking": false }'
161161

@@ -175,10 +175,10 @@ instance synchronizing that shard.
175175

176176
.. code-block:: shell
177177

178-
curl monogsync02Host:27602/api/v1/progress -XGET
178+
curl mongosync02Host:27602/api/v1/progress -XGET
179179

180180
This command checks the progress of the ``mongosync`` instance that is
181-
running on ``monogsync02Host`` and using ``port 27602`` for
181+
running on ``mongosync02Host`` and using ``port 27602`` for
182182
synchronization. To check progress on other shards, update the host and
183183
port number then repeat the API call to each ``mongosync`` instance.
184184

@@ -194,10 +194,10 @@ HTTP client to issue the ``pause`` command to a ``mongosync`` instance.
194194

195195
.. code-block:: shell
196196

197-
curl monogsync01Host:27601/api/v1/pause -XPOST --data '{}'
197+
curl mongosync01Host:27601/api/v1/pause -XPOST --data '{}'
198198

199199
This command pauses the ``mongosync`` instance that is running on
200-
``monogsync01Host`` and using ``port 27601`` for synchronization. To
200+
``mongosync01Host`` and using ``port 27601`` for synchronization. To
201201
pause synchronization on other shards, update the host and port number
202202
then repeat the API call to each ``mongosync`` instance.
203203

@@ -216,10 +216,10 @@ Use ``curl`` or another HTTP client to issue the :ref:`resume
216216

217217
.. code-block:: shell
218218

219-
curl monogsync01Host:27601/api/v1/resume -XPOST --data '{}'
219+
curl mongosync01Host:27601/api/v1/resume -XPOST --data '{}'
220220

221221
This command resumes synchronization on the ``mongosync`` instance that
222-
is running on ``monogsync01Host`` and using ``port 27601``. To
222+
is running on ``mongosync01Host`` and using ``port 27601``. To
223223
resume synchronization on other shards, update the host and port number
224224
then repeat the API call to each ``mongosync`` instance.
225225

@@ -248,13 +248,13 @@ instance.
248248
.. code-block:: shell
249249

250250
// Check progress
251-
curl monogsync01Host:27601/api/v1/progress -XGET
251+
curl mongosync01Host:27601/api/v1/progress -XGET
252252

253253
// Commit
254-
curl monogsync01Host:27601/api/v1/commit -XPOST --data '{}'
254+
curl mongosync01Host:27601/api/v1/commit -XPOST --data '{}'
255255

256256
These commands only check progress and commit synchronization for the
257-
``mongosync`` instance that is running on ``monogsync01Host`` and using
257+
``mongosync`` instance that is running on ``mongosync01Host`` and using
258258
``port 27601``. To synchronize all of the shards, make additional calls
259259
to ``progress`` and ``commit`` on any other ``mongosync`` instances
260260
that may be running.
@@ -279,10 +279,10 @@ instance.
279279

280280
.. code-block:: shell
281281

282-
curl monogsync01Host:27601/api/v1/reverse -XPOST --data '{}'
282+
curl mongosync01Host:27601/api/v1/reverse -XPOST --data '{}'
283283

284284
This command reverses synchronization on the ``mongosync``
285-
instance that is running on ``monogsync01Host`` and using ``port
285+
instance that is running on ``mongosync01Host`` and using ``port
286286
27601``. Make additional calls to ``reverse`` on any other
287287
``mongosync`` instances that may be running.
288288

source/quickstart.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ Follow the instructions below to setup {+c2c-product-name+}.
157157

158158
For more details, see :ref:`c2c-connecting`.
159159

160-
Initialize ``monogsync``
160+
Initialize ``mongosync``
161161
------------------------
162162

163-
``monogsync`` must create an initial connection to the source and
163+
``mongosync`` must create an initial connection to the source and
164164
destination clusters before it can start to sync data. To create the
165165
initial connection, issue the following command on a single line (the
166166
command is reformated here for clarity):

0 commit comments

Comments
 (0)