Skip to content

Commit 4f146ee

Browse files
committed
MW feedback
1 parent 3d99346 commit 4f146ee

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/crud/configure.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ includes the following components:
203203
To learn more about sharded clusters, see :manual:`Sharding </sharding/>`
204204
in the {+mdb-server+} manual.
205205

206-
When reading from the replica set shards, mongos applies your specified read
206+
When reading from the replica set shards, ``mongos`` applies your specified read
207207
preference. The read preference is re-evaluated for each operation.
208208

209209
The following example shows how to connect to a sharded cluster and specify a
@@ -256,11 +256,11 @@ When connecting to a sharded cluster or a replica set, the {+driver-short+} uses
256256
distribute these requests across multiple servers, which avoids overwhelming
257257
any one server and ensures optimal performance.
258258

259-
When connecting to a sharded cluster, the {+driver-short+} determines the closest mongos
259+
When connecting to a sharded cluster, the {+driver-short+} determines the closest ``mongos``
260260
instance by calculating which one has the lowest network round-trip time. Then, the driver
261-
determines the latency window by adding this mongos's average round-trip time to the
261+
determines the latency window by adding this ``mongos``'s average round-trip time to the
262262
:ref:`localThresholdMS value <kotlin-sync-local-threshold>`. The driver load balances requests
263-
across up to two random mongos instances that fall within the latency window. For each request,
263+
across up to two random ``mongos`` instances that fall within the latency window. For each request,
264264
the driver chooses the server with the lower operation load by determining its ``operationCount``
265265
value.
266266

@@ -284,15 +284,15 @@ The {+driver-short+} uses the local threshold value to calculate the
284284
latency window for server selection. This value determines the servers
285285
that are eligible to receive read and write requests.
286286

287-
By default, the driver uses only mongos instances or replica set members whose
287+
By default, the driver uses only ``mongos`` instances or replica set members whose
288288
ping times are within 15 milliseconds of the nearest server. To
289289
distribute reads among servers with higher latencies, set the ``localThreshold``
290290
option in a ``MongoClientSettings`` instance or the ``localThresholdMS`` option
291291
in your connection URI.
292292

293293
.. note::
294294

295-
When selecting replica set members from a single mongos instance, the
295+
When selecting replica set members from a single ``mongos`` instance, the
296296
{+driver-short+} ignores the ``localThresholdMS`` option. In this case, use the
297297
:manual:`localThreshold </reference/program/mongos/#std-option-mongos.--localThreshold>`
298298
command-line option.

0 commit comments

Comments
 (0)