<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:20 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>[GODRIVER-1883] [question] Unexpected connection numbers when initializing the client</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1883</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;When initializing the client with default configs, there is more than 1 connection (sometimes 2, sometimes 3) to the specific server.&lt;/p&gt;

&lt;p&gt;When I set the MaxPoolSize to 2 and MinPoolSize to 2, I got 4 connections which are also unexpected.&lt;/p&gt;

&lt;p&gt;I am wondering if it is a bug or feature in the driver?&lt;/p&gt;</description>
                <environment>WSL Kwernel: 4.19.128-microsoft-standard&lt;br/&gt;
CPU:  AMD Ryzen 7 3800XT 8-Core Processor</environment>
        <key id="1620286">GODRIVER-1883</key>
            <summary>[question] Unexpected connection numbers when initializing the client</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="13202">Works as Designed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="gaocegege@gmail.com">&#31574; &#39640;</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Feb 2021 05:22:42 +0000</created>
                <updated>Fri, 27 Oct 2023 13:16:24 +0000</updated>
                            <resolved>Tue, 16 Feb 2021 21:06:34 +0000</resolved>
                                    <version>1.4.6</version>
                                                    <component>Connections</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3615410" author="JIRAUSER1258668" created="Sun, 14 Feb 2021 03:45:46 +0000"  >&lt;p&gt;Thanks for your reply!&lt;/p&gt;

&lt;p&gt;Find the corresponding logic at&#160;go.mongodb.org/mongo-driver/x/mongo/driver/topology/server.go.&lt;br/&gt;
Connect()&lt;br/&gt;
&#160;&lt;br/&gt;
&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="3611456" author="kevin.albertson" created="Thu, 11 Feb 2021 14:00:15 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=gaocegege%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;gaocegege@gmail.com&quot;&gt;gaocegege@gmail.com&lt;/a&gt;, thank you for the report!&lt;/p&gt;

&lt;p&gt;That sounds like expected behavior. A fixed number of connections are created per server for monitoring. This is in addition to the connections created for application use (which is dictated by MinPoolSize and MaxPoolSize).&lt;/p&gt;

&lt;p&gt;For Go driver 1.4.0+ there are a fixed 2 monitoring connections per server.&lt;br/&gt;
 For Go driver &amp;lt; 1.4.0 there is a fixed 1 monitoring connection per server.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;When initializing the client with default configs, there is more than 1 connection (sometimes 2, sometimes 3) to the specific server.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;If no MaxPoolSize was specified, the default MaxPoolSize is 100. And application connections are created as needed. The higher rate of concurrent operations, the more application connections will be created, capping at MaxPoolSize.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;When I set the MaxPoolSize to 2 and MinPoolSize to 2, I got 4 connections which are also unexpected.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;If you are connecting to one server, since there are two monitoring connections, that is expected.&lt;/p&gt;

&lt;p&gt;Sincerely,&lt;br/&gt;
 Kevin&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1620467">GODRIVER-1884</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hyg4b3:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>