File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 34
34
:ref: `hedged reads <mongos-hedged-reads >` on sharded clusters.
35
35
36
36
* - :readmode: `nearest `
37
- - Operations read from the member of the :term: `replica set ` with
38
- the least network latency, irrespective of whether that member
39
- is a :term: `primary ` or :term: `secondary `.
37
+ - Operations read from a random eligible :term: `replica set `
38
+ member, irrespective of whether that member is a :term: `primary `
39
+ or :term: `secondary `, based on a specified latency threshold.
40
+ The operation considers the following when calculating latency:
41
+
42
+ - The :urioption: `localThresholdMS ` connection string option
43
+ - The :ref: `maxStalenessSeconds
44
+ <replica-set-read-preference-max-staleness>` read preference
45
+ option
46
+ - Any specified :doc: `tag sets
47
+ </tutorial/configure-replica-set-tag-sets>`
40
48
41
49
Starting in version 4.4, :readmode: `nearest ` supports
42
50
:ref: `hedged reads <mongos-hedged-reads >` on sharded clusters
You can’t perform that action at this time.
0 commit comments