<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:14:24 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-27188] how to control the connections from mongos to shards</title>
                <link>https://jira.mongodb.org/browse/SERVER-27188</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;1&#12289;there are 10 same programs in different PC server&#65292;and the config parameters of one program is below&#65306;&lt;br/&gt;
mongo.order.connectionsPerHost=100&lt;br/&gt;
mongo.order.threadsAllowedToBlockForConnectionMultiplier=20&lt;br/&gt;
mongo.order.connectTimeout=10000&lt;br/&gt;
mongo.order.socketKeepAlive=true&lt;br/&gt;
mongo.order.socketTimeout=15000&lt;br/&gt;
mongo.order.writeConcern=MAJORITY&lt;/p&gt;

&lt;p&gt;2&#12289;when there are 10000 clients visit the 10 same programs at the same time,in order to get data; the 3 mongos get below 2000 connections in total;but &lt;br/&gt;
one secondary of one shard get more than 6000 collections;I think there has some problems about the connections from mongos to shards;&lt;/p&gt;


&lt;p&gt;3 &#12289;I thried to modify parameter &quot;connPoolMaxShardedConnsPerHost=10&quot; in one mongos or one secondary of shard,but it doesn&apos;t work;so I want to know how to control the connections from mongos to shards&lt;/p&gt;

&lt;p&gt;4&#12289;The file &quot;questions_TaskExecutorPool.log&quot; is the log of the mongos,The file &quot;shard.log&quot; is the log of shard,The file &quot;metrics.*&quot; are diagnostic data&lt;br/&gt;
Thank you very much&lt;/p&gt;</description>
                <environment></environment>
        <key id="334460">SERVER-27188</key>
            <summary>how to control the connections from mongos to shards</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="kimmy-github">kimmy-github</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 Nov 2016 08:54:48 +0000</created>
                <updated>Mon, 12 Dec 2016 22:34:30 +0000</updated>
                            <resolved>Mon, 12 Dec 2016 22:34:29 +0000</resolved>
                                    <version>3.2.8</version>
                                                    <component>Internal Code</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1455827" author="thomas.schubert" created="Mon, 12 Dec 2016 22:34:30 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kimmy-github&quot; class=&quot;user-hover&quot; rel=&quot;kimmy-github&quot;&gt;kimmy-github&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for clarifying. From your response, I do not see anything to indicate a bug in the MongoDB server. For MongoDB-related support discussion please post on the &lt;a href=&quot;http://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-users group&lt;/a&gt; or &lt;a href=&quot;http://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag&lt;/a&gt;. A question like this involving more discussion would be best posted on the mongodb-users group.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1444149" author="kimmy-github" created="Tue, 29 Nov 2016 01:43:40 +0000"  >&lt;p&gt;Hi,Thomas Schubert:&lt;br/&gt;
    yes&#65292;I read from secondaries&#65292;but I think the collections from mongos to shards is too much,only the clients produce below 2000 collections,but collections from mongos to shards have up 6000,as you know, the collections has upper limits at one node&#65307;I hope the collections from mongos to shard has collection pool and I can control it&#65307;&lt;br/&gt;
      The problems caused by too many collections are it&apos;s easy to reach to the upper limit&#65292;then It can not recieve new collections&#65292;so clients will get error when they cant get new data&#65307;&lt;br/&gt;
     So far&#65292;there is no performance impact &#65292;but the clients will get error when they cant get new data&#65307;&lt;/p&gt;

&lt;p&gt;Thank you very much&lt;/p&gt;
</comment>
                            <comment id="1443800" author="thomas.schubert" created="Mon, 28 Nov 2016 20:34:34 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kimmy-github&quot; class=&quot;user-hover&quot; rel=&quot;kimmy-github&quot;&gt;kimmy-github&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for opening this ticket. So we can get a better understanding of what is going on here, would you please elaborate on this point?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;when there are 10000 clients visit the 10 same programs at the same time,in order to get data; the 3 mongos get below 2000 connections in total; but one secondary of one shard get more than 6000 collections;I think there has some problems about the connections from mongos to shards&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;What behavior do you expect, and what behavior would you prefer? What is the root issue that you are seeing, is there a performance impact that you can quantify? Are you reading from secondaries?&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="144787" name="mongos-log.zip" size="1036550" author="kimmy-github" created="Mon, 28 Nov 2016 08:54:46 +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>Mon, 28 Nov 2016 20:34:34 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 9 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>kimmy-github</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrjpyn:</customfieldvalue>

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

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