Skip to content

Commit 7f0300e

Browse files
authored
DOCSP-23884 clarify shard docs (#77)
* DOCSP--23884 Refactor of Connect step * DOCSP-23884 Refactor of Connect step * DOCSP-23884 Refactor of Connect step * DOCSP-23884 Fixes per Joe * DOCSP-23884 Fixes per Lingzhi Deng
1 parent 04a1eed commit 7f0300e

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

source/multiple-mongosyncs.txt

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,7 @@ To configure multiple ``mongosync`` instances:
102102
A single host server can run multiple ``mongosync`` instances. To
103103
improve performance, run ``mongosync`` on multiple host servers.
104104

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``.
116106

117107
.. code-block:: javascript
118108

@@ -121,8 +111,13 @@ To configure multiple ``mongosync`` instances:
121111
--cluster1 "mongodb://user:password@cluster1host:27500" \
122112
--id shard01 --port 27601
123113

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+
124119
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
126121
``mongosync`` instance.
127122

128123
.. code-block:: javascript
@@ -133,6 +128,20 @@ To configure multiple ``mongosync`` instances:
133128
--cluster1 "mongodb://user:password@cluster1host:27500" \
134129
--id shard02 --port 27602
135130

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+
136145
.. _c2c-sharded-start:
137146

138147
Start Multiple ``mongosync`` Instances

0 commit comments

Comments
 (0)