Skip to content

Commit bfb1570

Browse files
authored
CSHARP-4327: Update Server Monitoring documentation with correct commands and information on polling (<=4.2) versus streaming (>=4.4). (#967)
1 parent d4e4eac commit bfb1570

File tree

1 file changed

+6
-1
lines changed
  • Docs/reference/content/reference/driver_core

1 file changed

+6
-1
lines changed

Docs/reference/content/reference/driver_core/index.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ Connection pooling is provided for every server that is discovered. There are a
2323

2424
### Server Monitoring
2525

26-
Each server that is discovered is monitored. By default, this monitoring happens every 10 seconds and consists of a `{ hello: 1 }` (or legacy hello) call followed by a `{ buildInfo: 1 }` call. When servers go down, the frequency of these calls will be increased to 500 milliseconds. See the [Server Discovery and Monitoring Specification](https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring-summary.rst) for more information.
26+
Each server that is discovered is monitored.
27+
28+
MongoDB 4.4 or later: The `MongoClient` establishes an exhaust cursor to each discovered cluster node using `{ hello: 1 }` (or legacy hello). Cluster nodes push topology updates to `MongoClient`.
29+
MongoDB 4.2 or ealier: The `MongoClient` polls each discovered cluster node every [heartbeatFrequencyMS](https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.heartbeatFrequencyMS) (default 10 seconds, MongoDB Atlas 5 seconds) using `{ hello: 1 }` (or legacy hello).
30+
31+
When servers go down, the frequency of these calls will be increased to 500 milliseconds. See the [Server Discovery and Monitoring Specification](https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring-summary.rst) for more information.
2732

2833
### Server Selection
2934

0 commit comments

Comments
 (0)