moped icon indicating copy to clipboard operation
moped copied to clipboard

"nearest" read preference does not use correct logic

Open dbresson opened this issue 11 years ago • 0 comments

Nearest as currently written will select the node with the absolute lowest latency. According to the MongoDB documentation, nearest is supposed to select a random node within secondaryAcceptableLatencyMS of the lowest latency node. This can cause an imbalance in reads against replica sets with multiple nearby members.

dbresson avatar Jun 27 '14 18:06 dbresson