Skip to content

Commit f2d19d2

Browse files
authored
DOCSP-34133 adding read preference info to connection strings (#213)
* empty commit * DOCSP-34133 adding read preference info to atlas page * DOCSP-34133 adding read preference info * DOCSP-34133 adding read preference info * DOCSP-34133 adding read preference info * DOCSP-34133 adding read preference info * DOCSP-34133 adding read preference info * DOCSP-34133 copy edits
1 parent e42a555 commit f2d19d2

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

source/includes/fact-connection-strings-atlas.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ hostnames of the :binary:`mongos` instances instead of the
2828

2929
``mongosync`` does not require the :urioption:`replicaSet` option.
3030

31+
.. include:: /includes/read-preference-connection-string.rst

source/includes/fact-connection-strings.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ hostnames of the :binary:`mongos` instances instead of the
2424

2525
``mongosync`` does not require the :urioption:`replicaSet` option.
2626

27+
.. include:: /includes/read-preference-connection-string.rst
28+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
You can also specify read preference on a per-connection basis in the
2+
connection string. By default, ``mongosync`` sets the source cluster
3+
read preference to :readmode:`nearest` to distribute reads evenly across
4+
nodes. For more information on setting read preference in connection
5+
strings, see :ref:`connections-read-preference`.

source/reference/mongosync.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,15 @@ the destination cluster, ``mongosync`` sets the write concern level to
301301
For more information on read and write concern configuration and
302302
behavior, see :ref:`read-concern` and :ref:`write-concern`.
303303

304+
Read Preference
305+
~~~~~~~~~~~~~~~
306+
307+
By default, ``mongosync`` sets the source cluster read preference to
308+
:readmode:`nearest` to distribute reads evenly across nodes. To change
309+
the read preference of the source cluster, specify the read preference
310+
mode in the URI of the connection string. For details, see
311+
:ref:`connections-read-preference`.
312+
304313
.. _c2c-capped-collections:
305314

306315
Capped Collections

0 commit comments

Comments
 (0)