Skip to content

Commit 76d4b35

Browse files
authored
merge (#80)
1 parent b0049c3 commit 76d4b35

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

source/multiple-mongosyncs.txt

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,6 @@ To configure multiple ``mongosync`` instances:
100100
A single host server can run multiple ``mongosync`` instances. To
101101
improve performance, run ``mongosync`` on multiple host servers.
102102

103-
Each ``mongosync`` instance:
104-
105-
- Connects to the same ``mongos`` instance in the source cluster.
106-
- Connects to the same ``mongos`` instance in the destination
107-
cluster.
108-
- Connects to a single shard in the source cluster.
109-
- Specifies a unique port to use for during synchronization.
110-
Consider designating a range of ports to simplify scripting
111-
{+c2c-product-name+} operations.
112-
113103
Run the first ``mongosync`` instance:
114104

115105
.. code-block:: javascript
@@ -119,6 +109,11 @@ To configure multiple ``mongosync`` instances:
119109
--cluster1 "mongodb://user:password@cluster1host:27500" \
120110
--id shard01 --port 27601
121111

112+
When running multiple ``mongosync`` instances, the number of instances
113+
must equal the number of shards. Each ``mongosync`` instance must be
114+
started with the :option:`--id` option or :setting:`id` setting to
115+
specify the shard it replicates.
116+
122117
Run a new ``mongosync`` instance for each shard in the source cluster.
123118
Edit the ``--id`` and ``--port`` fields for each additional
124119
``mongosync`` instance.
@@ -131,6 +126,21 @@ To configure multiple ``mongosync`` instances:
131126
--cluster1 "mongodb://user:password@cluster1host:27500" \
132127
--id shard02 --port 27602
133128

129+
The connection strings for the :option:`--cluster0` and
130+
:option:`--cluster1` options should point to ``mongos`` instances.
131+
In the example, they use the same ``mongos`` instance.
132+
133+
Each ``mongosync`` instance:
134+
135+
- Connects to ``mongos`` instances in the source cluster.
136+
- Connects to ``mongos`` instances in the destination cluster.
137+
- Replicates a single shard from the source cluster,
138+
identified by the :option:`--id` option.
139+
- Specifies a unique port to use during synchronization.
140+
Consider designating a range of ports to simplify scripting
141+
{+c2c-product-name+} operations.
142+
143+
134144
.. _c2c-sharded-start:
135145

136146
Start Multiple ``mongosync`` Instances

0 commit comments

Comments
 (0)