Skip to content

Fixing recommendations #1582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions source/reference/read-preference.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ Minimize Latency
~~~~~~~~~~~~~~~~

To always read from a low-latency node, use :readmode:`nearest`. The
driver or :program:`mongos` will read from the fastest member and
driver or :program:`mongos` will read from the nearest member and
those no more than 15 milliseconds [#secondary-acceptable-latency]_
further away than the fastest member.
further away than the nearest member.

:readmode:`nearest` does *not* guarantee consistency. If the nearest
member to your application server is a secondary with some replication
Expand Down Expand Up @@ -198,18 +198,6 @@ from nearby members with the following read preference:
Although :readmode:`nearest` already favors members with low network latency,
including the tag makes the choice more predictable.

Maximize throughput
~~~~~~~~~~~~~~~~~~~

If disk I/O is the limiting fact for throughput, scale
reads capacity using :readmode:`nearest` and by setting the nearest
threshold [#nearest-threshold]_ very high. This will distribute the
query load equally among all members.

.. [#nearest-threshold] See :setting:`localThreshold` for
:program:`mongos` or your driver documentation for the appropriate
*secondaryAcceptableLatencyMS* setting.

Reduce load on the primary
~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down