<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:24:08 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-30526] Pre-populating connections of TaskExecutorPool (mongos)</title>
                <link>https://jira.mongodb.org/browse/SERVER-30526</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;After examining connections between mongos and mongod server, I&apos;ve found these connections are created when they need even I added setParameter.ShardingTaskExecutorPoolMinSize on  mongos.conf.&lt;/p&gt;

&lt;p&gt;Mongos does not make connections until mongos receives some requests from client.&lt;br/&gt;
A lot of web service, we deploy new code with rolling restart of web servers (sometimes with restarting mongos also). Once we have restarted web server, user requests are come in with same amount of requests before restart. But mongos does&apos;t have any connections to mongod server, so mongos have to prepare lots of connections at once.&lt;/p&gt;

&lt;p&gt;This leads lots of errors (like com.mongodb.MongoSocketReadTimeoutException and com.mongodb.MongoWaitQueueFullException) on client side. There&apos;s no easy way to warming-up connections between mongos and mongod because mongos maintains multi-layer connection pools (TaskExecutorPool and SpecificPool).&lt;/p&gt;

&lt;p&gt;So, I think it would be better that mongos prepare connections as many as &quot;setParameter.ShardingTaskExecutorPoolMinSize&quot; when they start. And then we can do rolling-restart app/web server and mongos smoothly.&lt;/p&gt;

&lt;p&gt;I&apos;ve attached mongod connection graph(3 shard cluster, each line is for primary member of each shard) and client timeout (over 3 seconds) error graph.&lt;br/&gt;
You can see the timeout error and mongod connection spikes are moving together from two graphs.&lt;/p&gt;

&lt;p&gt;And I hope this could be fixed ASAP, because critical in our service. If this is not fixed, we need to deploy new service code at night. I think other users also experience the same case if they are using rolling deployment also.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Matt.&lt;/p&gt;</description>
                <environment></environment>
        <key id="413311">SERVER-30526</key>
            <summary>Pre-populating connections of TaskExecutorPool (mongos)</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="3">Duplicate</resolution>
                                        <assignee username="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="sunguck.lee@gmail.com">&#50500;&#45208; &#54616;&#47532;</reporter>
                        <labels>
                    </labels>
                <created>Mon, 7 Aug 2017 12:19:23 +0000</created>
                <updated>Wed, 8 Feb 2023 15:40:56 +0000</updated>
                            <resolved>Thu, 10 Aug 2017 15:27:38 +0000</resolved>
                                    <version>3.4.4</version>
                                                    <component>Networking</component>
                                        <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="1645227" author="thomas.schubert" created="Thu, 10 Aug 2017 15:27:38 +0000"  >&lt;p&gt;Thanks for the clarification, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=matt.lee&quot; class=&quot;user-hover&quot; rel=&quot;matt.lee&quot;&gt;matt.lee&lt;/a&gt;. I&apos;m closing this ticket in favor of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-26720&quot; title=&quot;Need to prepare initial connection between mongos and mongod&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-26720&quot;&gt;SERVER-26720&lt;/a&gt;, which is already on our backlog.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1642545" author="sunguck.lee@gmail.com" created="Tue, 8 Aug 2017 02:05:50 +0000"  >&lt;p&gt;Hi Thomas.&lt;/p&gt;

&lt;p&gt;You right. I had forgotten that.&lt;br/&gt;
The only difference is MongoDB version (3.2 vs 3.4).&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                            <comment id="1642323" author="thomas.schubert" created="Mon, 7 Aug 2017 20:07:41 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=matt.lee&quot; class=&quot;user-hover&quot; rel=&quot;matt.lee&quot;&gt;matt.lee&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Would you please clarify how this feature request differs from &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-26720&quot; title=&quot;Need to prepare initial connection between mongos and mongod&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-26720&quot;&gt;SERVER-26720&lt;/a&gt;?&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="325798">SERVER-26720</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="162654" name="Client-TimeoutCountGraph.png" size="17066" author="matt.lee" created="Mon, 7 Aug 2017 12:16:06 +0000"/>
                            <attachment id="162655" name="MongoDB-ConnectionGraph.png" size="28313" author="matt.lee" created="Mon, 7 Aug 2017 12:15:54 +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, 7 Aug 2017 20:07:41 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 26 weeks, 6 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>sunguck.lee@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htcgan:</customfieldvalue>

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

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