Skip to content

Commit 1f9e5d6

Browse files
committed
DOCS-13981 clarify read preference nearest
1 parent b61f4ae commit 1f9e5d6

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

source/includes/read-preference-modes-table.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,14 @@
2323
members but if no :term:`secondary` members are available,
2424
operations read from the :term:`primary`.
2525
* - :readmode:`nearest`
26-
- Operations read from member of the :term:`replica
27-
set` with the least network latency, irrespective of the member's type.
26+
- Operations read from a random eligible :term:`replica set`
27+
member, irrespective of whether that member is a :term:`primary`
28+
or :term:`secondary`, based on a specified latency threshold.
29+
The operation considers the following when calculating latency:
30+
31+
- The :urioption:`localThresholdMS` connection string option
32+
- The :ref:`maxStalenessSeconds
33+
<replica-set-read-preference-max-staleness>` read preference
34+
option
35+
- Any specified :doc:`tag sets
36+
</tutorial/configure-replica-set-tag-sets>`

0 commit comments

Comments
 (0)