<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:31:42 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-32916] mongos creates lots of  connections  to  nongod nodes </title>
                <link>https://jira.mongodb.org/browse/SERVER-32916</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;HI&lt;/p&gt;

&lt;p&gt;we ran mongodb sharded cluster for  several weeks, it works well.&lt;br/&gt;
but  we found mongos would creates lots  of connections  to  primary nods  in a  shard set.&lt;br/&gt;
when this occured, the respone time of this cluster will  increase sharply &lt;br/&gt;
and bigger than the number we can accepted.&lt;/p&gt;

&lt;p&gt;we found some  typical  statement from logs, as  following:&lt;/p&gt;

&lt;p&gt;logs from mongos  log:&lt;/p&gt;

&lt;p&gt;2018-01-25T22:10:00.006+0800 I ASIO     &lt;span class=&quot;error&quot;&gt;&amp;#91;NetworkInterfaceASIO-TaskExecutorPool-8-0&amp;#93;&lt;/span&gt; Connecting to 10.136.142.35:28000&lt;br/&gt;
2018-01-25T22:10:00.008+0800 I ACCESS   &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2318094&amp;#93;&lt;/span&gt; Successfully authenticated as principal useeeeeeeer on admin&lt;br/&gt;
2018-01-25T22:10:00.013+0800 I ASIO     &lt;span class=&quot;error&quot;&gt;&amp;#91;NetworkInterfaceASIO-TaskExecutorPool-1-0&amp;#93;&lt;/span&gt; Successfully connected to 10.136.180.52:28000, took 10111ms (10 connections now open to 10.136.180.52:&lt;br/&gt;
28000)&lt;br/&gt;
2018-01-25T22:10:00.013+0800 I ASIO     &lt;span class=&quot;error&quot;&gt;&amp;#91;NetworkInterfaceASIO-TaskExecutorPool-12-0&amp;#93;&lt;/span&gt; Failed to connect to 10.136.179.52:28000 - HostUnreachable: End of file&lt;br/&gt;
2018-01-25T22:10:00.013+0800 I ASIO     &lt;span class=&quot;error&quot;&gt;&amp;#91;NetworkInterfaceASIO-TaskExecutorPool-12-0&amp;#93;&lt;/span&gt; Failed to close stream: Transport endpoint is not connected&lt;br/&gt;
2018-01-25T22:10:00.014+0800 I ASIO     &lt;span class=&quot;error&quot;&gt;&amp;#91;NetworkInterfaceASIO-TaskExecutorPool-8-0&amp;#93;&lt;/span&gt; Connecting to 10.136.5.44:28000&lt;/p&gt;

&lt;p&gt;logs from mongod:&lt;br/&gt;
2018-01-25T22:10:00.002+0800 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;thread2&amp;#93;&lt;/span&gt; connection accepted from 10.136.180.33:30285 #7564018 (10233 connections now open)&lt;br/&gt;
2018-01-25T22:10:00.006+0800 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;thread2&amp;#93;&lt;/span&gt; connection refused because too many open connections: 10240&lt;/p&gt;

&lt;p&gt;notes:  1.  we sets  the maxincomming conections of mongod  is 10240.&lt;br/&gt;
            2.  when the cluster goes into usual status, the conections of mongod  is about several hunderds.&lt;/p&gt;



&lt;p&gt;we could offer  the detail logs and  ftdc logs so as to find the root cause.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</description>
                <environment></environment>
        <key id="487659">SERVER-32916</key>
            <summary>mongos creates lots of  connections  to  nongod nodes </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="mark.agarunov">Mark Agarunov</assignee>
                                    <reporter username="shawn001">shawn</reporter>
                        <labels>
                    </labels>
                <created>Fri, 26 Jan 2018 08:06:20 +0000</created>
                <updated>Thu, 22 Feb 2018 22:27:25 +0000</updated>
                            <resolved>Mon, 29 Jan 2018 22:43:18 +0000</resolved>
                                                                    <component>Networking</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1788367" author="mark.agarunov" created="Mon, 29 Jan 2018 22:43:09 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=shawn001&quot; class=&quot;user-hover&quot; rel=&quot;shawn001&quot;&gt;shawn001&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for providing this information. Looking over the logs and diagnostic data, this appears to be caused by the rapid increase in connections. My recommendation would be adjusting the connection pool settings as described in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25027&quot; title=&quot;Configurable connection pools size for mongos&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25027&quot;&gt;&lt;del&gt;SERVER-25027&lt;/del&gt;&lt;/a&gt; to better match your specific workload. If you are still seeing this issue after making these adjustments, please let me know and we will continue the investigation.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Mark&lt;/p&gt;</comment>
                            <comment id="1787339" author="shawn001" created="Mon, 29 Jan 2018 03:29:23 +0000"  >&lt;p&gt;Hello  Mark&lt;/p&gt;

&lt;p&gt;I have  uploaded theses files  you need.&lt;/p&gt;

&lt;p&gt;Hoping for the root cause.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                            <comment id="1786432" author="mark.agarunov" created="Fri, 26 Jan 2018 21:15:11 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=shawn001&quot; class=&quot;user-hover&quot; rel=&quot;shawn001&quot;&gt;shawn001&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for the report. To get a better idea of why you may be seeing issue, could you please provide the complete logs from all affected &lt;tt&gt;mongod&lt;/tt&gt; and &lt;tt&gt;mongos&lt;/tt&gt; nodes, as well as an archive (tar or zip) of the &lt;tt&gt;$dbpath/diagnostic.data&lt;/tt&gt; directory?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Mark&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="177070" name="metrics.tar.gz" size="31347767" author="shawn001" created="Mon, 29 Jan 2018 03:28:18 +0000"/>
                            <attachment id="177068" name="mongod.log.tar.gz" size="33909896" author="shawn001" created="Mon, 29 Jan 2018 03:27:33 +0000"/>
                            <attachment id="177069" name="mongos.log.tar.gz" size="13198716" author="shawn001" created="Mon, 29 Jan 2018 03:27:59 +0000"/>
                    </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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 26 Jan 2018 21:15:11 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 2 weeks, 2 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>backlog-server-pm</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 2 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>mark.agarunov</customfieldvalue>
            <customfieldvalue>shawn001</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htoszb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htgcwv:</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|htof3z:</customfieldvalue>

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