Skip to content

Commit 4a2152f

Browse files
(DOCSP-27444): Increased open files for incoming connections in 4.2 (#2438)
* WIP * (DOCSP-27444): Increased open files for incoming connections in 4.2 * ordering * wording * format replacements * wording * reorder phrases * wording * change language and add incldue to upgrade procedures * staging fix * add missing replacements
1 parent ba5edc3 commit 4a2152f

File tree

6 files changed

+45
-5
lines changed

6 files changed

+45
-5
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Starting in MongoDB 4.2, incoming connections to a :binary:`mongod` or
2+
:binary:`mongos` instance require **two** file descriptors. In previous
3+
versions of MongoDB, incoming connections required **one** file
4+
descriptor.
5+
6+
Prior to upgrading from MongoDB 4.0 to 4.2, you may need to increase the
7+
value of your open files |ulimit| setting (``-n``).

source/reference/ulimit.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ deployment and its use to determine ideal ``ulimit`` settings.
3030

3131
Generally, all :binary:`~bin.mongod` and :binary:`~bin.mongos` instances:
3232

33-
- track each incoming connection with a file descriptor *and* a
33+
- track each incoming connection with two file descriptors *and* a
3434
thread.
3535

3636
- track each internal thread or *pthread* as a system process.
@@ -205,6 +205,16 @@ Always remember to restart your :binary:`~bin.mongod` and
205205
:binary:`~bin.mongos` instances after changing the ``ulimit`` settings to
206206
ensure that the changes take effect.
207207

208+
Considerations
209+
``````````````
210+
211+
.. |ulimit| replace:: ``ulimit``
212+
213+
- .. include:: /includes/4.2-changes/open-file-connection-increase.rst
214+
215+
- For the macOS platform, the recommended process limit is ``2500``,
216+
which is the maximum configurable value for this platform.
217+
208218
Linux distributions using Upstart
209219
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
210220

source/release-notes/4.2-compatibility.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,12 @@ Resume Token Modification
390390

391391
.. include:: /includes/extracts/4.2-changes-change-stream-modification-error.rst
392392

393+
Increased File Descriptors Required for Incoming Connections
394+
------------------------------------------------------------
395+
396+
.. |ulimit| replace:: :ref:`ulimit <ulimit>`
397+
398+
.. include:: /includes/4.2-changes/open-file-connection-increase.rst
393399

394400
MongoDB Tools
395401
-------------

source/release-notes/4.2-upgrade-replica-set.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ Upgrade a Replica Set to 4.2
1616

1717
.. include:: /includes/upgrade-copy.rst
1818

19-
.. note:: Starting in MongoDB 4.2
20-
21-
.. include:: /includes/collMod-note.rst
22-
2319
.. |downgrading| replace:: :doc:`downgrading </release-notes/4.2-downgrade-replica-set>`
2420

2521
Read Concern Majority (3-Member Primary-Secondary-Arbiter Architecture)
@@ -84,6 +80,13 @@ If your 4.0 deployment uses MMAPv1, you must change the 4.0 deployment
8480
to :doc:`/core/wiredtiger` before upgrading to MongoDB 4.2. For details,
8581
see :doc:`/tutorial/change-replica-set-wiredtiger`.
8682

83+
Increase Open Files ``ulimit`` Setting
84+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
85+
86+
.. |ulimit| replace:: :ref:`ulimit <ulimit>`
87+
88+
.. include:: /includes/4.2-changes/open-file-connection-increase.rst
89+
8790
Review Current Configuration
8891
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8992

source/release-notes/4.2-upgrade-sharded-cluster.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ If your 4.0 deployment uses MMAPv1, you must change the 4.0 deployment
7878
to :doc:`/core/wiredtiger` before upgrading to MongoDB 4.2. For details,
7979
see :doc:`/tutorial/change-sharded-cluster-wiredtiger`.
8080

81+
Increase Open Files ``ulimit`` Setting
82+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
83+
84+
.. |ulimit| replace:: :ref:`ulimit <ulimit>`
85+
86+
.. include:: /includes/4.2-changes/open-file-connection-increase.rst
87+
8188
Review Current Configuration
8289
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8390

source/release-notes/4.2-upgrade-standalone.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ If your 4.0 deployment uses MMAPv1, you must change the 4.0 deployment
3434
to :doc:`/core/wiredtiger` before upgrading to MongoDB 4.2. For details,
3535
see :doc:`/tutorial/change-standalone-wiredtiger`.
3636

37+
Increase Open Files ``ulimit`` Setting
38+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39+
40+
.. |ulimit| replace:: :ref:`ulimit <ulimit>`
41+
42+
.. include:: /includes/4.2-changes/open-file-connection-increase.rst
43+
3744
Review Current Configuration
3845
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3946

0 commit comments

Comments
 (0)