svn: /phpdoc/en/trunk/reference/mongo/ connecting.xml

From: Date: Tue, 09 Sep 2014 18:16:10 +0000
Subject: svn: /phpdoc/en/trunk/reference/mongo/ connecting.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12794@lists.php.net to get a copy of this message
jmikola Tue, 09 Sep 2014 18:16:10 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=334825 Log: Clarify that differing MongoDB seed list connections are persisted https://jira.mongodb.org/browse/PHP-1216 Changed paths: U phpdoc/en/trunk/reference/mongo/connecting.xml Modified: phpdoc/en/trunk/reference/mongo/connecting.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/connecting.xml 2014-09-09 15:48:36 UTC (rev 334824) +++ phpdoc/en/trunk/reference/mongo/connecting.xml 2014-09-09 18:16:10 UTC (rev 334825) @@ -204,7 +204,7 @@ by a comma. </para> <example xml:id="mongo.connecting.rs-example"> - <title>ReplicaSet seedlist</title> + <title>ReplicaSet seed list</title> <programlisting role="php"> <![CDATA[ <?php @@ -229,20 +229,26 @@ </para> <tip> <para> - You should always provide a seedlist with more than one member of the + You should always provide a seed list with more than one member of the ReplicaSet. For highest availability you should seed with at least one server from each of your datacenters. </para> </tip> <warning> <para> - The host names that you specify here <emphasis>must</emphasis> match the - names as given in the replica set configuration because the driver uses the - name as specified in the replica set configuration as identifier in its - internal mapping. Specifying (for example) the IP address instead of the - configured host name makes that the driver keeps a connection for both the - host name and its accompanying IP address. + The host names that you specify in the seed list <emphasis>must</emphasis> + match the host names in the replica set configuration. This is because the + driver only uses the host names in the replica set configuration to create + the hash for its persistent connections. </para> + <para> + For example, if an IP address is used in the seed list and the replica set + is configured with host names, the driver will discard any seed list + connection(s) that differ from the canonical host names reported by the + replica set. Effectively, these non-canonical seed list connections will be + recreated on each request, greatly reducing the benefit of using persistent + connections. + </para> </warning> <warning> <para>

« previous php.doc.cvs (#12794) next »