Skip to content

Commit 156f9e1

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 b390c31 commit 156f9e1

File tree

6 files changed

+45
-10
lines changed

6 files changed

+45
-10
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 & 6 deletions
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.
@@ -214,15 +214,20 @@ the following thresholds and settings are particularly important for
214214
- ``-m`` (memory size): ``unlimited`` [#memory-size]_ [#rss-linux]_
215215
- ``-u`` (processes/threads): ``64000``
216216

217-
.. note::
218-
219-
For the macOS platform, the recommended process limit is ``2500``,
220-
which is the maximum configurable value for this platform.
221-
222217
Always remember to restart your :binary:`~bin.mongod` and
223218
:binary:`~bin.mongos` instances after changing the ``ulimit`` settings to
224219
ensure that the changes take effect.
225220

221+
Considerations
222+
``````````````
223+
224+
.. |ulimit| replace:: ``ulimit``
225+
226+
- .. include:: /includes/4.2-changes/open-file-connection-increase.rst
227+
228+
- For the macOS platform, the recommended process limit is ``2500``,
229+
which is the maximum configurable value for this platform.
230+
226231
Linux distributions using Upstart
227232
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
228233

source/release-notes/4.2-compatibility.txt

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

394394
.. include:: /includes/extracts/4.2-changes-change-stream-modification-error.rst
395395

396+
Increased File Descriptors Required for Incoming Connections
397+
------------------------------------------------------------
398+
399+
.. |ulimit| replace:: :ref:`ulimit <ulimit>`
400+
401+
.. include:: /includes/4.2-changes/open-file-connection-increase.rst
396402

397403
MongoDB Tools
398404
-------------

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)
@@ -86,6 +82,13 @@ If your 4.0 deployment uses MMAPv1, you must change the 4.0 deployment
8682
to :doc:`/core/wiredtiger` before upgrading to MongoDB 4.2. For details,
8783
see :doc:`/tutorial/change-replica-set-wiredtiger`.
8884

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

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

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

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+
8390
Review Current Configuration
8491
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8592

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)