<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:38:50 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-2526] Heavy allocations in selectByKind</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2526</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/395983/395983_image+%286%29.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;This is how the top of allocation profile looks like in one of our batch processing services.&lt;/p&gt;

&lt;p&gt;We use sharded cluster, pool of mongos services, and drvier 1.9.1.&lt;/p&gt;

&lt;p&gt;It seems that, in our case at least, this selection in a no-op (all candidates are &lt;tt&gt;Mongos&lt;/tt&gt;), but the allocation burden is very considerable.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2114869">GODRIVER-2526</key>
            <summary>Heavy allocations in selectByKind</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="qingyang.hu@mongodb.com">Qingyang Hu</assignee>
                                    <reporter username="petr.ivanov.s@gmail.com">Peter Ivanov</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Aug 2022 10:41:06 +0000</created>
                <updated>Sat, 28 Oct 2023 11:37:30 +0000</updated>
                            <resolved>Thu, 8 Sep 2022 18:06:38 +0000</resolved>
                                    <version>1.9.1</version>
                                    <fixVersion>1.11.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4809063" author="xgen-internal-githook" created="Wed, 7 Sep 2022 18:09:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Qingyang Hu&apos;, &apos;email&apos;: &apos;103950869+qingyang-hu@users.noreply.github.com&apos;, &apos;username&apos;: &apos;qingyang-hu&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2526&quot; title=&quot;Heavy allocations in selectByKind&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2526&quot;&gt;&lt;del&gt;GODRIVER-2526&lt;/del&gt;&lt;/a&gt; Optimize description.selectByKind. (#1059)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2526&quot; title=&quot;Heavy allocations in selectByKind&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2526&quot;&gt;&lt;del&gt;GODRIVER-2526&lt;/del&gt;&lt;/a&gt; Optimize description.selectByKind by eliminating struct appending.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Co-authored-by: Benjamin Rewis &amp;lt;32186188+benjirewis@users.noreply.github.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/4c8d1ad208b7e709e74ff64b48431c0601368ba3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/4c8d1ad208b7e709e74ff64b48431c0601368ba3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4783316" author="petr.ivanov.s@gmail.com" created="Mon, 29 Aug 2022 11:42:57 +0000"  >&lt;p&gt;Hi!&lt;/p&gt;

&lt;p&gt;Out setup implies autoscaling of mongos instances according to load, but here&apos;s some numbers I can share:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;around 10 mongo clusters a backend instance talks to&lt;/li&gt;
	&lt;li&gt;at any given time, we expect roughly from 5 to 50 mongos instances for a single cluster&lt;/li&gt;
	&lt;li&gt;mongos instances are somewhat often started and killed, so the list behind a SRV record changes pretty frequently&lt;/li&gt;
	&lt;li&gt;so, you could assume that the backend instance has around 10 clients with 20 mongos instances in each one&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="4777349" author="JIRAUSER1268281" created="Thu, 25 Aug 2022 18:01:19 +0000"  >&lt;p&gt;Hi, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=petr.ivanov.s%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;petr.ivanov.s@gmail.com&quot;&gt;petr.ivanov.s@gmail.com&lt;/a&gt;, can you please let us know how many mongos instances are running? Maybe the cluster topology as well?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2169786">GODRIVER-2626</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2169789">GODRIVER-2627</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2169793">GODRIVER-2628</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="395983" name="image (6).png" size="76806" author="petr.ivanov.s@gmail.com" created="Tue, 16 Aug 2022 10:36:55 +0000"/>
                    </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|i0p9u8:</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>