Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch '2.0'

  • Loading branch information...
commit 273eec99d3176a0673f63f4c5268b677c207efe6 2 parents 6e1a947 + bcfb6aa
@jmikola jmikola authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 Resources/doc/config.rst
View
14 Resources/doc/config.rst
@@ -233,6 +233,18 @@ string as a comma separated list.
Where mongodb-01, mongodb-02 and mongodb-03 are the machine hostnames. You
can also use IP addresses if you prefer.
+Retrying Connections and Queries
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Doctrine MongoDB supports automatically retrying connections and queries after
+encountering an exception, which is helpful when dealing with situations such as
+replica set failovers. This alleviates much of the need to catch exceptions from
+the MongoDB PHP driver in your application and manually retry operations.
+
+You may specify the number of times to retry connections and queries via the
+`retry_connect` and `retry_query` options in the document manager configuration.
+These options default to zero, which means that no operations will be retried.
+
Full Default Configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -249,6 +261,8 @@ Full Default Configuration
database: ~
logging: true
auto_mapping: false
+ retry_connect: 0
+ retry_query: 0
metadata_cache_driver:
type: ~
class: ~
Please sign in to comment.
Something went wrong with that request. Please try again.