File tree 3 files changed +34
-34
lines changed
3 files changed +34
-34
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ Close Sockets After Connection
405
405
------------------------------
406
406
407
407
If you experience unexpected network behavior or if a MongoDB process
408
- fails with an error, you may not receive confirmation that the
408
+ fails with an error, you might not receive confirmation that the
409
409
driver correctly closed the corresponding socket.
410
410
411
411
To make sure that the driver correctly closes the socket in these cases,
@@ -436,7 +436,7 @@ The ``keepAlive`` connection option specifies whether to enable
436
436
:wikipedia:`Transmission Control Protocol (TCP) keepalives
437
437
<Keepalive#TCP_keepalive>` on a TCP socket. If you enable keepalives,
438
438
the driver checks whether the connection is active by sending periodic pings
439
- to your MongoDB deployment. This functionality only works if your
439
+ to your MongoDB deployment. This functionality works only if your
440
440
operating system supports the ``SO_KEEPALIVE`` socket option.
441
441
442
442
The ``keepAliveInitialDelay`` option specifies the number of
Original file line number Diff line number Diff line change @@ -370,3 +370,35 @@ Confirm that your firewall exhibits the following behavior:
370
370
371
371
To learn more about keepalive messages, see the :ref:`keepAlive Connection Option
372
372
<node-faq-keepalive>` section in the Connection Options page.
373
+
374
+ Connection String Errors for Replica Sets
375
+ -----------------------------------------
376
+
377
+ The connection string passed to the driver must use exact hostnames for
378
+ the servers, as set in the :manual:`Replica Set Config </reference/replica-configuration/>`.
379
+ Given the following configuration settings for your replica set, in
380
+ order for the replica set discovery and :manual:`failover
381
+ </reference/glossary/#term-failover>` to work, the driver must have access
382
+ to ``server1``, ``server2``, and ``server3``.
383
+
384
+ .. code-block:: JSON
385
+
386
+ {
387
+ "_id": "testSet",
388
+ "version": 1,
389
+ "protocolVersion": 1,
390
+ "members": [
391
+ {
392
+ "_id": 1,
393
+ "host": "server1:31000"
394
+ },
395
+ {
396
+ "_id": 2,
397
+ "host": "server2:31001"
398
+ },
399
+ {
400
+ "_id": 3,
401
+ "host": "server3:31002"
402
+ }
403
+ ]
404
+ }
Original file line number Diff line number Diff line change @@ -40,38 +40,6 @@ concern level set for the client.
40
40
These options allow you to customize the causal consistency and availability of the data
41
41
in your replica sets.
42
42
43
- Connection Strings for Replica Sets
44
- -----------------------------------
45
-
46
- The connection string passed to the driver must use exact hostnames for
47
- the servers as set in the :manual:`Replica Set Config </reference/replica-configuration/>`.
48
- Given the following configuration settings for your Replica Set, in
49
- order for the Replica Set discovery and :manual:`failover
50
- </reference/glossary/#term-failover>` to work, the driver must have access
51
- to ``server1``, ``server2``, and ``server3``.
52
-
53
- .. code-block:: JSON
54
-
55
- {
56
- "_id": "testSet",
57
- "version": 1,
58
- "protocolVersion": 1,
59
- "members": [
60
- {
61
- "_id": 1,
62
- "host": "server1:31000"
63
- },
64
- {
65
- "_id": 2,
66
- "host": "server2:31001"
67
- },
68
- {
69
- "_id": 3,
70
- "host": "server3:31002"
71
- }
72
- ]
73
- }
74
-
75
43
Write Concern
76
44
-------------
77
45
You can’t perform that action at this time.
0 commit comments