<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:46:34 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-59179] Does the mongodb server ignore the socketTimeout setting in high ram utilization or high ram availability scenarios</title>
                <link>https://jira.mongodb.org/browse/SERVER-59179</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hey Guys&lt;/p&gt;

&lt;p&gt;We are seeing some strange behaviour in our mongo 3.4 db server.&#160; We had a db server outage event which lead to us increasing the specifications of our mongodb db server.&#160; In the process of us trying to determine the cause of the outage event, we noticed something peculiar with the mongodb connection count metric before and after the upgrade.&#160;&lt;/p&gt;

&lt;p&gt;Prior to the upgrade, our db server connections fluctuated between ~12k during off peak times and ~26k during peak times.&#160; During off peak times, the connections come from our baseline level of application servers running in docker containers. Our application server is configured to have a connection pool size of 50 connections. During peak times the new connections come from new docker containers that are started in response to autoscaling activities. So it&apos;s not that the number of connections per application server instance has increased. The number of application server instances have increased leading to a higher connection count number&lt;/p&gt;

&lt;p&gt;After the outage and db server upgrade, the db server connection count now fluctuate between ~24k and ~38k.&#160; As far as we can tell nothing has changed in terms of our traffic patterns, our application server configuration or our autoscaling configuration.&#160;&#160;&lt;/p&gt;

&lt;p&gt;Our current theory is that the difference in behaviour is due to our previous database server being grossly under powered triggering some unpublicised mongodb recovery / salvage behaviour.&#160; Our old db server had 32gb of ram and the new one has 128gb of ram.&#160; Our theory is that the old db server suffered constantly from a low memory condition without us recognising it and it closed the idle db connections before the configured socket timeout of 30 minutes was reached.&#160;&#160;&lt;/p&gt;

&lt;p&gt;Now with the db server having ample memory, during off peak times, it&apos;s not closing the connections from the application servers as often as it had to with the previous db server configuration.&#160; This leads to an off peak connection count of 24k instead of the previous 12k.&#160;&#160;&lt;/p&gt;

&lt;p&gt;Does our analysis sound correct? Does such undocumented db server connection handling behaviour exist in the code?&lt;/p&gt;

&lt;p&gt;Alternatively, another theory is that with the previous 32gb ram configuration, the 30 minute socket timeout was being enforced religiously. But now with the 128gb ram configuration, the 30 minute socket timeout is now being ignored through some undocumented db server behaviour.&lt;/p&gt;

&lt;p&gt;Please have a look and see if the db server code backs up any of the above theories.&lt;/p&gt;


&lt;p&gt;Thanks&lt;/p&gt;</description>
                <environment></environment>
        <key id="1845355">SERVER-59179</key>
            <summary>Does the mongodb server ignore the socketTimeout setting in high ram utilization or high ram availability scenarios</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="-1">Unassigned</assignee>
                                    <reporter username="michael.qiu@wdtl.com">asdf01</reporter>
                        <labels>
                            <label>pooling</label>
                    </labels>
                <created>Mon, 9 Aug 2021 06:05:40 +0000</created>
                <updated>Thu, 12 Aug 2021 15:14:19 +0000</updated>
                            <resolved>Thu, 12 Aug 2021 15:14:19 +0000</resolved>
                                    <version>3.4.24</version>
                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3997554" author="JIRAUSER1257066" created="Thu, 12 Aug 2021 15:14:19 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=michael.qiu%40wdtl.com&quot; class=&quot;user-hover&quot; rel=&quot;michael.qiu@wdtl.com&quot;&gt;michael.qiu@wdtl.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for your report. Please note that MongoDB v3.4 &lt;a href=&quot;https://www.mongodb.com/support-policy/legacy&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;reached end of life in January 2020&lt;/a&gt; and is no longer supported. Additionally, SERVER project is for bugs for the MongoDB server. As this ticket does not appear to be a bug, I will now close it. If you need further assistance troubleshooting, I encourage you to ask our community by posting on the &lt;a href=&quot;https://community.mongodb.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MongoDB Developer Community Forums&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Best,&lt;br/&gt;
Edwin&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 12 Aug 2021 15:14:19 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 25 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>edwin.zhou@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 25 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>michael.qiu@wdtl.com</customfieldvalue>
            <customfieldvalue>edwin.zhou@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzwr5z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzgxdz:</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_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </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|hzwdev:</customfieldvalue>

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