<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:23:54 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>[SERVER-30462] Coordinate connection and WT session limits</title>
                <link>https://jira.mongodb.org/browse/SERVER-30462</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Currently&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;the limit on the number of connections is determined by the number of available file descriptors, and we fail gracefully by refusing additional connections if this limit is exceeded&lt;/li&gt;
	&lt;li&gt;whereas the limit on the number of WT sessions is hard-coded at 20000, and we abort if this limit is exceed.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Each connection will require a WT session to do anything useful. So this means that if the maximum number of connections is &amp;lt; 20000 we fail gracefully when this number is exceeded, whereas if the maximum number of connections is &amp;gt; 20000 we may abort when we exceed 20000 connections. &lt;/p&gt;

&lt;p&gt;We should either make maximum number of sessions track maximum number of connections, or hard code the maximum number of connections as well.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="411189">SERVER-30462</key>
            <summary>Coordinate connection and WT session limits</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="backlog-server-servicearch">Backlog - Service Architecture</assignee>
                                    <reporter username="bruce.lucas@mongodb.com">Bruce Lucas</reporter>
                        <labels>
                    </labels>
                <created>Tue, 1 Aug 2017 18:28:10 +0000</created>
                <updated>Mon, 8 Jan 2024 15:23:01 +0000</updated>
                            <resolved>Fri, 24 May 2019 15:33:22 +0000</resolved>
                                                                    <component>Networking</component>
                                        <votes>2</votes>
                                    <watches>13</watches>
                                                                                                                <comments>
                            <comment id="2259348" author="jason.carey" created="Fri, 24 May 2019 15:33:22 +0000"  >&lt;p&gt;Closing this out, assuming that &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-40162&quot; title=&quot;Change the default WiredTiger session_max from 20k to 33k&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-40162&quot;&gt;&lt;del&gt;SERVER-40162&lt;/del&gt;&lt;/a&gt; mitigates in default configurations, and in favor of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-40161&quot; title=&quot;Make failure of conn-&amp;gt;open_session in WiredTigerSession ctor non-fatal&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-40161&quot;&gt;&lt;del&gt;SERVER-40161&lt;/del&gt;&lt;/a&gt; for a long term solution&lt;/p&gt;</comment>
                            <comment id="2205051" author="jason.carey" created="Mon, 8 Apr 2019 14:13:21 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bruce.lucas&quot; class=&quot;user-hover&quot; rel=&quot;bruce.lucas&quot;&gt;bruce.lucas&lt;/a&gt; -  pinging this ticket with an update:&lt;/p&gt;

&lt;p&gt;After &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-40162&quot; title=&quot;Change the default WiredTiger session_max from 20k to 33k&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-40162&quot;&gt;&lt;del&gt;SERVER-40162&lt;/del&gt;&lt;/a&gt;, the wt session limit got a bump up to 33k.  I think that should prevent session exhaustion from being the first exhausted resource in most configurations (with file descriptors or processes coming in first, and being non-fatal).&lt;/p&gt;</comment>
                            <comment id="2181949" author="jason.carey" created="Fri, 15 Mar 2019 17:09:38 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bruce.lucas&quot; class=&quot;user-hover&quot; rel=&quot;bruce.lucas&quot;&gt;bruce.lucas&lt;/a&gt; mentioned&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;For reference, making failure to allocate a WT session non-fatal was previously proposed and rejected in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17364&quot; title=&quot;Idle cursors shouldn&amp;#39;t hold storage engine resources&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17364&quot;&gt;&lt;del&gt;SERVER-17364&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;But after looking through &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17364&quot; title=&quot;Idle cursors shouldn&amp;#39;t hold storage engine resources&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17364&quot;&gt;&lt;del&gt;SERVER-17364&lt;/del&gt;&lt;/a&gt;, it seems we rejected making failure to create a WT session non-fatal back when we used WT sessions for idle cursors.  I&apos;m not sure if the same logic applies anymore (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17364&quot; title=&quot;Idle cursors shouldn&amp;#39;t hold storage engine resources&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17364&quot;&gt;&lt;del&gt;SERVER-17364&lt;/del&gt;&lt;/a&gt; was re-purposed for that fix).&lt;/p&gt;

&lt;p&gt;I&apos;d like storage to reconsider in light of that change.&lt;/p&gt;

&lt;p&gt;Additionally, I think we&apos;re overthinking a bit in terms of sizing the default limit.  If we&apos;re actually 1:1 wt sessions and ingress connections / db clients, picking a slightly higher limit (up above 32768), is almost certain to be enough (as we burn a process per client, and I don&apos;t think I&apos;ve seen a user in the wild which changes pid_max)&lt;/p&gt;

&lt;p&gt;Opened &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-40161&quot; title=&quot;Make failure of conn-&amp;gt;open_session in WiredTigerSession ctor non-fatal&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-40161&quot;&gt;&lt;del&gt;SERVER-40161&lt;/del&gt;&lt;/a&gt; to revisit making session allocation failures non-fatal&lt;br/&gt;
Opened &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-40162&quot; title=&quot;Change the default WiredTiger session_max from 20k to 33k&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-40162&quot;&gt;&lt;del&gt;SERVER-40162&lt;/del&gt;&lt;/a&gt; to consider upping the limit to 33k, to get just beyond some other soft limits&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="410306">SERVER-30421</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="717482">SERVER-40161</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="717486">SERVER-40162</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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25132"><![CDATA[Service Arch]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000dOnJhQAK, 5002K00000dW74VQAS]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 8 Aug 2017 14:26:06 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 37 weeks, 5 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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 37 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-servicearch</customfieldvalue>
            <customfieldvalue>bruce.lucas@mongodb.com</customfieldvalue>
            <customfieldvalue>mira.carey@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htc3rr:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htbpuf:</customfieldvalue>

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