File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -225,13 +225,18 @@ one server in the sharded cluster and ensures optimal performance.
225
225
To distribute database requests, the {+driver-short+} determines the closest mongos
226
226
by calculating which one has the lowest network round-trip time. Then, the driver
227
227
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.
230
232
231
233
.. tip::
232
234
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.
235
240
236
241
.. _java-tag-sets:
237
242
You can’t perform that action at this time.
0 commit comments