Make sure that we mention that "NEAREST" is actually random.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332831 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Derick Rethans 2014-02-11 12:19:22 +00:00
parent 44e38e287d
commit 63addc4f3d

View file

@ -18,7 +18,8 @@
Read preferences are specified with a combination of modes and tag sets. Modes
determine how mongod instances are prioritized, while
<link xlink:href="&url.mongodb.docs.tagsets;">tag sets</link> specify criteria
for eligible mongod instances.
for eligible mongod instances. Mongod instances are only eligible if they
are within a 15ms ping time from the client.
</para>
<simplesect xml:id="mongo.readpreferences.modes">
<title>Read Preference Modes</title>
@ -111,9 +112,10 @@
<literal>MongoClient::RP_NEAREST</literal>
</para>
<para>
The driver reads from the nearest member of the set according to the member
selection process. Reads in the <literal>MongoClient::RP_NEAREST</literal>
mode do not consider the member's type and may read from both primaries and
The driver reads from a <emphasis>random</emphasis> member of the set
that is within the 15 ms selection treshold.
Reads in the <literal>MongoClient::RP_NEAREST</literal> mode do not
consider the member's type and may read from both primaries and
secondaries.
</para>
<para>