@@ -100,16 +100,6 @@ To configure multiple ``mongosync`` instances:
100
100
A single host server can run multiple ``mongosync`` instances. To
101
101
improve performance, run ``mongosync`` on multiple host servers.
102
102
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
-
113
103
Run the first ``mongosync`` instance:
114
104
115
105
.. code-block:: javascript
@@ -119,6 +109,11 @@ To configure multiple ``mongosync`` instances:
119
109
--cluster1 "mongodb://user:password@cluster1host:27500" \
120
110
--id shard01 --port 27601
121
111
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
+
122
117
Run a new ``mongosync`` instance for each shard in the source cluster.
123
118
Edit the ``--id`` and ``--port`` fields for each additional
124
119
``mongosync`` instance.
@@ -131,6 +126,21 @@ To configure multiple ``mongosync`` instances:
131
126
--cluster1 "mongodb://user:password@cluster1host:27500" \
132
127
--id shard02 --port 27602
133
128
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
+
134
144
.. _c2c-sharded-start:
135
145
136
146
Start Multiple ``mongosync`` Instances
0 commit comments