<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:30:04 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-32380] established connections keep larger than connPoolMaxShardedConnsPerHost</title>
                <link>https://jira.mongodb.org/browse/SERVER-32380</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;1. mongos run with: &lt;b&gt;--setParameter connPoolMaxShardedConnsPerHost=10&lt;/b&gt;&lt;br/&gt;
2. use 24 mongo to connect mongos, 24 connections to mongos&lt;br/&gt;
3. run command, such as:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;db.example.insert({&apos;foo&apos;: 6})&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;from the mongos log, i found:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;2017-12-18T12:01:48.525+0800 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;conn21&amp;#93;&lt;/span&gt; Ending idle connection to host mongo1260/10.160.188.108:27017,10.160.189.108:27017,10.160.243.108:27017(with timeout of 0 seconds) because the pool meets constraints; 13 connections to that host remain open&lt;br/&gt;
2017-12-18T12:01:48.526+0800 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;conn11&amp;#93;&lt;/span&gt; Ending idle connection to host mongo1260/10.160.188.108:27017,10.160.189.108:27017,10.160.243.108:27017(with timeout of 0 seconds) because the pool meets constraints; 12 connections to that host remain open&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;but I found there are still 22 connections from mongos to mongod(10.160.243.108), netstat command as below:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;netstat -antp | grep ESTABLISHED | fgrep &apos;10.160.243.108:27017&apos; | awk &apos;{print $5}&apos; | sort | uniq -c&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;the 22 connections will always keep established. the output as below:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;22 10.160.243.108:27017&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;so, may I have a wrong use on &lt;b&gt;connPoolMaxShardedConnsPerHost&lt;/b&gt; ?&lt;/p&gt;

&lt;p&gt;official docs about &lt;b&gt;connPoolMaxShardedConnsPerHost&lt;/b&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Set the maximum size of the connection pools for communication to the shards. The size of a pool does not prevent the creation of additional connections, but does prevent the connection pools from retaining connections above this limit.&lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment></environment>
        <key id="473600">SERVER-32380</key>
            <summary>established connections keep larger than connPoolMaxShardedConnsPerHost</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="3">Duplicate</resolution>
                                        <assignee username="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="stutiredboy@gmail.com">Adun</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Dec 2017 04:17:59 +0000</created>
                <updated>Thu, 11 Jan 2018 14:58:49 +0000</updated>
                            <resolved>Thu, 21 Dec 2017 05:25:04 +0000</resolved>
                                    <version>3.2.17</version>
                                                    <component>Networking</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1757556" author="thomas.schubert" created="Thu, 21 Dec 2017 05:24:48 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=stutiredboy%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;stutiredboy@gmail.com&quot;&gt;stutiredboy@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for reporting this behavior. Just earlier today, we improved this behavior in the master branch of MongoDB. Please review Sam&apos;s &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28822?focusedCommentId=1757288&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1757288&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;comment&lt;/a&gt; on &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28822&quot; title=&quot;Improve DBConnectionPool&amp;#39;s growth semantics&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28822&quot;&gt;&lt;del&gt;SERVER-28822&lt;/del&gt;&lt;/a&gt; for more details about the behavior you&apos;re observing and the changes made under this commit.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Kelsey&lt;/p&gt;</comment>
                            <comment id="1754274" author="stutiredboy@gmail.com" created="Mon, 18 Dec 2017 12:19:56 +0000"  >&lt;p&gt;something missed, please replace:&lt;/p&gt;

&lt;p&gt;3. run command, such as:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;db.example.insert({&apos;foo&apos;: 6})&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;to:&lt;/p&gt;

&lt;p&gt;3. run command, such as:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;db.example.count() // or db.example.find()&lt;/p&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;p&gt;db.example.insert({&apos;foo&apos;: 6})&lt;/p&gt;&lt;/blockquote&gt;


</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="374632">SERVER-28822</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 18 Dec 2017 04:25:58 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 7 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>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, 7 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>stutiredboy@gmail.com</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htmg47:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hte17z:</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>
                                    <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

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

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