Skip to content

Commit 6cf5077

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 7dd5781 commit 6cf5077

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
@@ -32,7 +32,7 @@ deployment and its use to determine ideal ``ulimit`` settings.
3232

3333
Generally, all :binary:`~bin.mongod` and :binary:`~bin.mongos` instances:
3434

35-
- track each incoming connection with a file descriptor *and* a
35+
- track each incoming connection with two file descriptors *and* a
3636
thread.
3737

3838
- track each internal thread or *pthread* as a system process.
@@ -236,15 +236,20 @@ the following thresholds and settings are particularly important for
236236
- ``-m`` (memory size): ``unlimited`` [#memory-size]_ [#rss-linux]_
237237
- ``-u`` (processes/threads): ``64000``
238238

239-
.. note::
240-
241-
For the macOS platform, the recommended process limit is ``2500``,
242-
which is the maximum configurable value for this platform.
243-
244239
Always remember to restart your :binary:`~bin.mongod` and
245240
:binary:`~bin.mongos` instances after changing the ``ulimit`` settings to
246241
ensure that the changes take effect.
247242

243+
Considerations
244+
``````````````
245+
246+
.. |ulimit| replace:: ``ulimit``
247+
248+
- .. include:: /includes/4.2-changes/open-file-connection-increase.rst
249+
250+
- For the macOS platform, the recommended process limit is ``2500``,
251+
which is the maximum configurable value for this platform.
252+
248253
Linux distributions using Upstart
249254
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
250255

source/release-notes/4.2-compatibility.txt

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

397397
.. include:: /includes/extracts/4.2-changes-change-stream-modification-error.rst
398398

399+
Increased File Descriptors Required for Incoming Connections
400+
------------------------------------------------------------
401+
402+
.. |ulimit| replace:: :ref:`ulimit <ulimit>`
403+
404+
.. include:: /includes/4.2-changes/open-file-connection-increase.rst
399405

400406
MongoDB Tools
401407
-------------

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)