From d6fe182e3b7f4e0607c708d1a88b0781a75a645c Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Thu, 16 Feb 2017 16:03:27 +0000 Subject: [PATCH] Document limits for heartbeatFrequencyMS and maxStalenessSeconds MongoDB URI options git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341907 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../mongodb/driver/manager/construct.xml | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/reference/mongodb/mongodb/driver/manager/construct.xml b/reference/mongodb/mongodb/driver/manager/construct.xml index 643b86ff9d..5d177f4051 100644 --- a/reference/mongodb/mongodb/driver/manager/construct.xml +++ b/reference/mongodb/mongodb/driver/manager/construct.xml @@ -172,6 +172,11 @@ mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][ until the beginning of the next one. Defaults to 60,000 milliseconds. + + Per the + Server Discovery and Monitoring Specification, + this value cannot be less than 500 milliseconds. + @@ -201,13 +206,21 @@ mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][ maxStalenessSeconds integer - Corresponds to the read preference's - "maxStalenessSeconds". Specifies, in seconds, how - stale a secondary can be before the client stops using it for read - operations. By default, there is no maximum staleness and clients - will not consider a secondary’s lag when choosing where to direct a - read operation. For details, see - MongoDB\Driver\ReadPreference. + + Corresponds to the read preference's + "maxStalenessSeconds". Specifies, in seconds, how + stale a secondary can be before the client stops using it for read + operations. By default, there is no maximum staleness and clients + will not consider a secondary’s lag when choosing where to direct a + read operation. For details, see + MongoDB\Driver\ReadPreference. + + + If specified, the max staleness must be a signed 32-bit integer + greater than or equal to + MongoDB\Driver\ReadPreference::SMALLEST_MAX_STALENESS_SECONDS + (i.e. 90 seconds). +