@@ -102,17 +102,7 @@ To configure multiple ``mongosync`` instances:
102
102
A single host server can run multiple ``mongosync`` instances. To
103
103
improve performance, run ``mongosync`` on multiple host servers.
104
104
105
- Each ``mongosync`` instance:
106
-
107
- - Connects to the same ``mongos`` instance in the source cluster.
108
- - Connects to the same ``mongos`` instance in the destination
109
- cluster.
110
- - Connects to a single shard in the source cluster.
111
- - Specifies a unique port to use for during synchronization.
112
- Consider designating a range of ports to simplify scripting
113
- {+c2c-product-name+} operations.
114
-
115
- Run the first ``mongosync`` instance:
105
+ Run the first ``mongosync`` instance, connecting to ``mongos``.
116
106
117
107
.. code-block:: javascript
118
108
@@ -121,8 +111,13 @@ To configure multiple ``mongosync`` instances:
121
111
--cluster1 "mongodb://user:password@cluster1host:27500" \
122
112
--id shard01 --port 27601
123
113
114
+ When running multiple ``mongosync`` instances, the number of instances
115
+ must equal the number of shards. Each ``mongosync`` instance must be
116
+ started with the :option:`--id` option or :setting:`id` setting to
117
+ specify the shard it replicates.
118
+
124
119
Run a new ``mongosync`` instance for each shard in the source cluster.
125
- Edit the `` --id`` and `` --port`` fields for each additional
120
+ Edit the :option:` --id` and :option:` --port` options for each additional
126
121
``mongosync`` instance.
127
122
128
123
.. code-block:: javascript
@@ -133,6 +128,20 @@ To configure multiple ``mongosync`` instances:
133
128
--cluster1 "mongodb://user:password@cluster1host:27500" \
134
129
--id shard02 --port 27602
135
130
131
+ The connection strings for the :option:`--cluster0` and
132
+ :option:`--cluster1` options should point to ``mongos`` instances.
133
+ In the example, they use the same ``mongos`` instance.
134
+
135
+ Each ``mongosync`` instance:
136
+
137
+ - Connects to ``mongos`` instances in the source cluster.
138
+ - Connects to ``mongos`` instances in the destination cluster.
139
+ - Replicates a single shard from the source cluster,
140
+ identified by the :option:`--id` option.
141
+ - Specifies a unique port to use during synchronization.
142
+ Consider designating a range of ports to simplify scripting
143
+ {+c2c-product-name+} operations.
144
+
136
145
.. _c2c-sharded-start:
137
146
138
147
Start Multiple ``mongosync`` Instances
0 commit comments