<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:38:45 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[DOCS-471] Documentation should cover recommended ulimit settings for Linux installation</title>
                <link>https://jira.mongodb.org/browse/DOCS-471</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;Documentation should cover the OS settings required to run mongodb at scale.&lt;/p&gt;

&lt;p&gt;Discussion: &lt;/p&gt;

&lt;p&gt;The Linux OS limits cover number of open files/sockets per process, number of threads per user, and various other per-process limits.  If these are set too low, mongod/mongos will fail with various errors.&lt;/p&gt;

&lt;p&gt;For mongod running standalone or in a replica set (non-sharded):&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;One thread is allocated for each connection to the &apos;mongod&apos; process&lt;/li&gt;
	&lt;li&gt;One file descriptor is used by each incoming connection&lt;/li&gt;
	&lt;li&gt;One file descriptor is used for each data file or journal file used by the database&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;For mongos (running in a sharded cluster):&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;One thread is allocated for each incoming connection from a client&lt;/li&gt;
	&lt;li&gt;One file descriptor is used by each incoming connection&lt;/li&gt;
	&lt;li&gt;One file descriptor is used for a connection to each member of each shard&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Here are the values I&apos;d recommend for the &apos;ulimit&apos; settings for the MongoDB processes:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;file size (-f) unlimited&lt;/li&gt;
	&lt;li&gt;cpu time (-t) unlimited&lt;/li&gt;
	&lt;li&gt;virtual memory (-v) unlimited&lt;/li&gt;
	&lt;li&gt;open files (-n) 21000&lt;/li&gt;
	&lt;li&gt;memory size (-m) unlimited&lt;/li&gt;
	&lt;li&gt;processes/threads (-u) 32000&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Diagnosing problems:&lt;/p&gt;

&lt;p&gt;On Linux, users can determine the limits for the mongod/mongos processes by examining the contents of the file /proc/$PID/limits, where $PID is the process ID of the mongod/mongos process in question.&lt;/p&gt;</description>
                <environment></environment>
        <key id="49071">DOCS-471</key>
            <summary>Documentation should cover recommended ulimit settings for Linux installation</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="sam.kleinman">Sam Kleinman</assignee>
                                    <reporter username="william.zola@10gen.com">William Zola</reporter>
                        <labels>
                            <label>supportability</label>
                    </labels>
                <created>Fri, 31 Aug 2012 17:18:04 +0000</created>
                <updated>Mon, 30 Oct 2023 22:02:28 +0000</updated>
                            <resolved>Wed, 10 Oct 2012 22:34:06 +0000</resolved>
                                                    <fixVersion>Server_Docs_20231030</fixVersion>
                                    <component>manual</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="173956" author="auto" created="Thu, 11 Oct 2012 21:18:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-10-11T08:01:04-07:00&apos;, u&apos;email&apos;: u&apos;bob.grabar@10gen.com&apos;, u&apos;name&apos;: u&apos;Bob Grabar&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-471&quot; title=&quot;Documentation should cover recommended ulimit settings for Linux installation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-471&quot;&gt;&lt;del&gt;DOCS-471&lt;/del&gt;&lt;/a&gt; minor edits&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/adbe0b21f76496bfcd82f23a3f1b66d5ebdd60ba&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/adbe0b21f76496bfcd82f23a3f1b66d5ebdd60ba&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="173568" author="auto" created="Wed, 10 Oct 2012 22:33:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-10-10T13:53:54-07:00&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-471&quot; title=&quot;Documentation should cover recommended ulimit settings for Linux installation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-471&quot;&gt;&lt;del&gt;DOCS-471&lt;/del&gt;&lt;/a&gt; changes to ulimit page and publishing.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/dbbb35bf67c8af23377374e80404d48de9332adc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/dbbb35bf67c8af23377374e80404d48de9332adc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="173348" author="auto" created="Wed, 10 Oct 2012 15:21:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-10-10T08:21:40-07:00&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-471&quot; title=&quot;Documentation should cover recommended ulimit settings for Linux installation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-471&quot;&gt;&lt;del&gt;DOCS-471&lt;/del&gt;&lt;/a&gt; adding note about ulimit&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/2e6b2960557a7534300d0cd6510ee07991017949&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/2e6b2960557a7534300d0cd6510ee07991017949&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="173142" author="auto" created="Tue, 9 Oct 2012 22:31:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-10-09T15:31:06-07:00&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;}
&lt;p&gt;Message: minor: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-471&quot; title=&quot;Documentation should cover recommended ulimit settings for Linux installation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-471&quot;&gt;&lt;del&gt;DOCS-471&lt;/del&gt;&lt;/a&gt; edits&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/7966c0f5f601fa2a2e39aa86c81d52553c2c40c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/7966c0f5f601fa2a2e39aa86c81d52553c2c40c2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="173141" author="auto" created="Tue, 9 Oct 2012 22:31:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-10-09T15:26:42-07:00&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;}
&lt;p&gt;Message: merge: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-471&quot; title=&quot;Documentation should cover recommended ulimit settings for Linux installation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-471&quot;&gt;&lt;del&gt;DOCS-471&lt;/del&gt;&lt;/a&gt; edits&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/b0062cc253d639f8d50a56ac01b29b92bc2b779c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/b0062cc253d639f8d50a56ac01b29b92bc2b779c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="173140" author="auto" created="Tue, 9 Oct 2012 22:31:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-10-09T15:13:01-07:00&apos;, u&apos;email&apos;: u&apos;bob.grabar@10gen.com&apos;, u&apos;name&apos;: u&apos;Bob Grabar&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-471&quot; title=&quot;Documentation should cover recommended ulimit settings for Linux installation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-471&quot;&gt;&lt;del&gt;DOCS-471&lt;/del&gt;&lt;/a&gt;: ulimit page: edits&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/697b06628b146e96f6f910c59d2f788140489feb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/697b06628b146e96f6f910c59d2f788140489feb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="173109" author="auto" created="Tue, 9 Oct 2012 21:31:04 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-10-09T14:30:47-07:00&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-471&quot; title=&quot;Documentation should cover recommended ulimit settings for Linux installation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-471&quot;&gt;&lt;del&gt;DOCS-471&lt;/del&gt;&lt;/a&gt;: ulimit page draft&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/313eb77892037809e1a3bd53850fe9ea70fef3a2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/313eb77892037809e1a3bd53850fe9ea70fef3a2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="172995" author="samk" created="Tue, 9 Oct 2012 17:41:26 +0000"  >&lt;p&gt;What are the resource utilization factors of the mongod instances in a shard cluster, and how do they differ from more simple deployments?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="50193">DOCS-510</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="50193">DOCS-510</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 9 Oct 2012 17:41:26 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 18 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 18 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>sam.kleinman</customfieldvalue>
            <customfieldvalue>william.zola@10gen.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrsccv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrhkpb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>16162</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hryk7b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>