Skip to content

Commit 72116cd

Browse files
committed
DOCS-13981 clarify read preference nearest
1 parent f518ac3 commit 72116cd

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
@@ -19,5 +19,14 @@
1919
members but if no :term:`secondary` members are available,
2020
operations read from the :term:`primary`.
2121
* - :readmode:`nearest`
22-
- Operations read from member of the :term:`replica
23-
set` with the least network latency, irrespective of the member's type.
22+
- Operations read from a random eligible :term:`replica set`
23+
member, irrespective of whether that member is a :term:`primary`
24+
or :term:`secondary`, based on a specified latency threshold.
25+
The operation considers the following when calculating latency:
26+
27+
- The :urioption:`localThresholdMS` connection string option
28+
- The :ref:`maxStalenessSeconds
29+
<replica-set-read-preference-max-staleness>` read preference
30+
option
31+
- Any specified :doc:`tag sets
32+
</tutorial/configure-replica-set-tag-sets>`

0 commit comments

Comments
 (0)