<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:20:17 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-29237] Add maxConnecting in asio connpool</title>
                <link>https://jira.mongodb.org/browse/SERVER-29237</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;div class=&quot;panel&quot; style=&quot;background-color: #EEEEEE;border-color: #ccc;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-color: #ccc;background-color: #6CB33F;&quot;&gt;&lt;b&gt;Issue Status as of Jun 15, 2017&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #EEEEEE;&quot;&gt;
&lt;p&gt;&lt;b&gt;ISSUE DESCRIPTION&lt;/b&gt;&lt;br/&gt;
This ticket adds a new flag to &lt;tt&gt;mongos&lt;/tt&gt; to allow users to control the rate at which new connections from a &lt;tt&gt;mongos&lt;/tt&gt; to a &lt;tt&gt;mongod&lt;/tt&gt; are created.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;RATIONALE&lt;/b&gt;&lt;br/&gt;
This functionality is aimed at mitigating connection storms in the following scenario:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;a &lt;tt&gt;mongos&lt;/tt&gt; has a high number of connections established to a given shard&lt;/li&gt;
	&lt;li&gt;the shard&apos;s primary becomes temporarily unavailable (e.g.: during an election or a temporary network glitch)&lt;/li&gt;
	&lt;li&gt;the shard&apos;s primary becomes available again (e.g.: new primary elected, network glitch resolved)&lt;/li&gt;
	&lt;li&gt;the &lt;tt&gt;mongos&lt;/tt&gt; will try to re-establish or refresh all connection to the shard&apos;s primary&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;It is possible for &lt;tt&gt;mongos&lt;/tt&gt; nodes to overwhelm the primary with connection requests, which may have adverse consequences.&lt;/p&gt;

&lt;p&gt;The &lt;tt&gt;ShardingTaskExecutorPoolMaxConnecting&lt;/tt&gt; flag allows users to limit the rate at which &lt;tt&gt;mongos&lt;/tt&gt; nodes add connectons to connection pools. The flag changes &lt;tt&gt;mongos&lt;/tt&gt; behavior so that only &lt;tt&gt;N&lt;/tt&gt; connections can be in the processing state at any one time (in setup/refresh) to avoid overwhelming &lt;tt&gt;mongod&lt;/tt&gt; nodes with connection requests.&lt;/p&gt;

&lt;p&gt;It is worth noting that this flag is &lt;em&gt;per connection pool&lt;/em&gt;, so if a &lt;tt&gt;mongos&lt;/tt&gt; node has &lt;tt&gt;C&lt;/tt&gt; connection pools and &lt;tt&gt;ShardingTaskExecutorPoolMaxConnecting&lt;/tt&gt; is set to &lt;tt&gt;N&lt;/tt&gt;, the node may establish up to &lt;tt&gt;C * N&lt;/tt&gt; connections to a &lt;tt&gt;mongod&lt;/tt&gt; in a scenario like the one described above. Please see &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; for more information on configuring connection pools. &lt;/p&gt;


&lt;p&gt;The &lt;b&gt;default value is &lt;tt&gt;unlimited&lt;/tt&gt;&lt;/b&gt; for backwards-compatibility purposes. This default value may change in future versions of MongoDB.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;SUPPORTED VERSIONS&lt;/b&gt;&lt;br/&gt;
This flag is available in MongoDB 3.5.9, 3.4.6, 3.2.15 and newer versions.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;h6&gt;&lt;a name=&quot;Originaldescription&quot;&gt;&lt;/a&gt;Original description&lt;/h6&gt;

&lt;p&gt;A new connection pool option which controls that rate at which we add new connections.  It changes behavior so that only N connections can be in the processing state at any one time (in setup/refresh).  More connections will be added, if needed, as each new connection completes, fails or times out.&lt;/p&gt;

&lt;p&gt;Available in mongos via ShardingTaskExecutorPoolMaxConnecting, defaults to unlimited.&lt;/p&gt;</description>
                <environment></environment>
        <key id="384075">SERVER-29237</key>
            <summary>Add maxConnecting in asio connpool</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="13201">Fixed</resolution>
                                        <assignee username="mira.carey@mongodb.com">Mira Carey</assignee>
                                    <reporter username="mira.carey@mongodb.com">Mira Carey</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 May 2017 19:08:43 +0000</created>
                <updated>Mon, 30 Oct 2023 23:16:45 +0000</updated>
                            <resolved>Fri, 2 Jun 2017 15:44:56 +0000</resolved>
                                                    <fixVersion>3.2.15</fixVersion>
                    <fixVersion>3.4.6</fixVersion>
                    <fixVersion>3.5.9</fixVersion>
                                    <component>Networking</component>
                                        <votes>0</votes>
                                    <watches>12</watches>
                                                                                                                <comments>
                            <comment id="1598499" author="xgen-internal-githook" created="Thu, 15 Jun 2017 19:40:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;hanumantmk&apos;, u&apos;name&apos;: u&apos;Jason Carey&apos;, u&apos;email&apos;: u&apos;jcarey@argv.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29237&quot; title=&quot;Add maxConnecting in asio connpool&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29237&quot;&gt;&lt;del&gt;SERVER-29237&lt;/del&gt;&lt;/a&gt; add maxConnecting in asio connpool&lt;/p&gt;

&lt;p&gt;A new connection pool option which controls that rate at which we add&lt;br/&gt;
new connections.  It changes behavior so that only N connections can be&lt;br/&gt;
in the processing state at any one time (in setup/refresh).  More&lt;br/&gt;
connections will be added, if needed, as each new connection completes,&lt;br/&gt;
fails or times out.&lt;/p&gt;

&lt;p&gt;available in mongos via ShardingTaskExecutorPoolMaxConnecting, defaults&lt;br/&gt;
to unlimited.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit f75fb8f5eee2b91599334681ab2b1ebcf20b491c)&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ea703784a6ef1dc22b9023bcd40d8a1e8d4a5f71&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ea703784a6ef1dc22b9023bcd40d8a1e8d4a5f71&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1598498" author="xgen-internal-githook" created="Thu, 15 Jun 2017 19:40:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;hanumantmk&apos;, u&apos;name&apos;: u&apos;Jason Carey&apos;, u&apos;email&apos;: u&apos;jcarey@argv.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29237&quot; title=&quot;Add maxConnecting in asio connpool&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29237&quot;&gt;&lt;del&gt;SERVER-29237&lt;/del&gt;&lt;/a&gt; add maxConnecting in asio connpool&lt;/p&gt;

&lt;p&gt;A new connection pool option which controls that rate at which we add&lt;br/&gt;
new connections.  It changes behavior so that only N connections can be&lt;br/&gt;
in the processing state at any one time (in setup/refresh).  More&lt;br/&gt;
connections will be added, if needed, as each new connection completes,&lt;br/&gt;
fails or times out.&lt;/p&gt;

&lt;p&gt;available in mongos via ShardingTaskExecutorPoolMaxConnecting, defaults&lt;br/&gt;
to unlimited.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit f75fb8f5eee2b91599334681ab2b1ebcf20b491c)&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6ad1c52b68afff7c3698f3df143f10d2f747be06&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6ad1c52b68afff7c3698f3df143f10d2f747be06&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1586054" author="xgen-internal-githook" created="Fri, 2 Jun 2017 15:42:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;hanumantmk&apos;, u&apos;name&apos;: u&apos;Jason Carey&apos;, u&apos;email&apos;: u&apos;jcarey@argv.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29237&quot; title=&quot;Add maxConnecting in asio connpool&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29237&quot;&gt;&lt;del&gt;SERVER-29237&lt;/del&gt;&lt;/a&gt; add maxConnecting in asio connpool&lt;/p&gt;

&lt;p&gt;A new connection pool option which controls that rate at which we add&lt;br/&gt;
new connections.  It changes behavior so that only N connections can be&lt;br/&gt;
in the processing state at any one time (in setup/refresh).  More&lt;br/&gt;
connections will be added, if needed, as each new connection completes,&lt;br/&gt;
fails or times out.&lt;/p&gt;

&lt;p&gt;available in mongos via ShardingTaskExecutorPoolMaxConnecting, defaults&lt;br/&gt;
to unlimited.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f75fb8f5eee2b91599334681ab2b1ebcf20b491c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f75fb8f5eee2b91599334681ab2b1ebcf20b491c&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="383556">SERVER-29206</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="389606">SERVER-29429</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="390314">DOCS-10352</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="383556">SERVER-29206</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="370922">SERVER-28629</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="350718">SERVER-27880</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="350718">SERVER-27880</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="14340"><![CDATA[v3.4]]></customfieldvalue>
    <customfieldvalue key="13440"><![CDATA[v3.2]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000Y5bCSIAZ, 500A000000YTG2vIAH, 5002K00000iz2iAQAQ]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 2 Jun 2017 15:42:09 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 34 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/WRITING-2023'>WRITING-2023</a></s>]]></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, 34 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>mira.carey@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht7ipb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrakif:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1741">Platforms 2017-05-29</customfieldvalue>
    <customfieldvalue id="1754">Platforms 2017-06-19</customfieldvalue>

                        </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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11858"><![CDATA[Completed]]></customfieldvalue>

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

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