Skip to content

Commit f7a237a

Browse files
committed
tech feedback
1 parent ed26f8e commit f7a237a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

source/crud/read-write-config.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,18 @@ one server in the sharded cluster and ensures optimal performance.
225225
To distribute database requests, the {+driver-short+} determines the closest mongos
226226
by calculating which one has the lowest network round-trip time. Then, the driver
227227
determines the latency window by adding this mongos's average round-trip time to the
228-
``localThresholdMS`` value. The driver load balances data randomly across the mongos
229-
instances that fall within the latency window.
228+
:ref:`localThresholdMS value <java-local-threshold>`. The driver load balances requests
229+
across up to two mongos instances that fall within the latency window. For each request,
230+
the driver chooses the server with the lower operation load by determining its ``operationCount``
231+
value.
230232

231233
.. tip::
232234

233-
To learn more about load balancing, see :manual:`Sharded Cluster Balancer </core/sharding-balancer-administration/>`
234-
in the {+mdb-server+} manual.
235+
To learn more about load balancing, see :manual:`Sharded Cluster Balancer
236+
</core/sharding-balancer-administration/>` in the {+mdb-server+} manual.
237+
238+
To learn how to customize the driver's server selection behavior, see
239+
:ref:`mcs-cluster-settings` in the Specify MongoClient Settings guide.
235240

236241
.. _java-tag-sets:
237242

0 commit comments

Comments
 (0)