Skip to content

Commit ff21ff6

Browse files
committed
fixes
1 parent 08d20a5 commit ff21ff6

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

source/connect/connection-options/server-selection.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@ a ``MongoClient`` with an instance of the custom server selector class from the
8787
Use Settings to Configure Server Selection
8888
------------------------------------------
8989

90-
You can specify the following server selection settings in your connection URI,
91-
a ``MongoClientSettings`` object (for the ``localThreshold`` setting), or a ``ClusterSettings`` object
92-
(for the ``readPreference`` and ``serverSelectionTimeout`` settings):
90+
You can specify the following server selection settings in your ``MongoClient`` object or
91+
in your connection URI:
9392

9493
.. list-table::
9594
:widths: 30 70
@@ -101,15 +100,18 @@ a ``MongoClientSettings`` object (for the ``localThreshold`` setting), or a ``Cl
101100
* - ``localThreshold``
102101
- | The latency window for server eligibility. If a server's round trip takes longer
103102
| than the fastest server's round-trip time plus this value, the server isn't
104-
| eligible for selection.
103+
| eligible for selection. You can specify this setting to a ``MongoClientSettings`` object
104+
in addition to the connection URI.
105105
|
106106
| **Data Type**: ``Integer``
107107
| **Default**: 15 milliseconds
108108
| **Connection URI Example**: ``localThresholdMS=0``
109109

110110
* - ``readPreference``
111111
- | The client's default read-preference settings. For more information on read preference
112-
options, see :manual:`Read Preference </core/read-preference/>` in the {+mdb-server+} manual.
112+
options, see :manual:`Read Preference </core/read-preference/>` in the {+mdb-server+} manual.
113+
You can specify this setting to a ``ClusterSettings`` object in addition to the
114+
connection URI.
113115
|
114116
| **Data Type**: `ReadPreference <{+core-api+}/ReadPreference.html>`__
115117
| **Default**: ``ReadPreference.primary()``
@@ -124,6 +126,8 @@ a ``MongoClientSettings`` object (for the ``localThreshold`` setting), or a ``Cl
124126

125127
* - ``serverSelectionTimeout``
126128
- | The length of time the driver tries to select a server before timing out.
129+
You can specify this setting to a ``ClusterSettings`` object in addition to the
130+
connection URI.
127131
|
128132
| **Data Type**: ``Long``
129133
| **Default**: 30 seconds

0 commit comments

Comments
 (0)