<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:49:01 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-82365] Optimize the construction of the balancer&apos;s collection distribution status histogram (2nd attempt)</title>
                <link>https://jira.mongodb.org/browse/SERVER-82365</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;An improved version of the balancer round logic was committed in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-40459&quot; title=&quot;Optimize the construction of the balancer&amp;#39;s collection distribution status histogram&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-40459&quot;&gt;&lt;del&gt;SERVER-40459&lt;/del&gt;&lt;/a&gt;&#160; but then reverted due to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-82325&quot; title=&quot;Config server could invariant during balancer round&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-82325&quot;&gt;&lt;del&gt;SERVER-82325&lt;/del&gt;&lt;/a&gt;. So this will be the second attempt to address this performance issue.&lt;/p&gt;

&lt;p&gt;With a considerable number of chunks, the balancer is observed to spend a large amount of time checking each chunk for belonging to a tag. This can lead to a situation where a balancer round spends most of its time finding a candidate chunk (e.g. one minute) rather than migrating a chunk. This can have a significant impact on the overall cluster balancing performance.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2480568">SERVER-82365</key>
            <summary>Optimize the construction of the balancer&apos;s collection distribution status histogram (2nd attempt)</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="13201">Fixed</resolution>
                                        <assignee username="tommaso.tocci@mongodb.com">Tommaso Tocci</assignee>
                                    <reporter username="tommaso.tocci@mongodb.com">Tommaso Tocci</reporter>
                        <labels>
                            <label>balancer-round-perf</label>
                    </labels>
                <created>Sat, 21 Oct 2023 23:02:41 +0000</created>
                <updated>Mon, 15 Jan 2024 07:35:28 +0000</updated>
                            <resolved>Wed, 20 Dec 2023 11:28:58 +0000</resolved>
                                    <version>4.2.25</version>
                    <version>4.4.24</version>
                    <version>6.0.10</version>
                    <version>5.0.21</version>
                    <version>7.2.0-rc0</version>
                    <version>7.0.2</version>
                    <version>7.1.0</version>
                                    <fixVersion>4.2.25</fixVersion>
                    <fixVersion>5.0.23</fixVersion>
                    <fixVersion>7.2.1</fixVersion>
                    <fixVersion>7.3.0-rc0</fixVersion>
                    <fixVersion>7.0.5</fixVersion>
                    <fixVersion>6.0.13</fixVersion>
                    <fixVersion>4.4.28</fixVersion>
                    <fixVersion>7.0.6</fixVersion>
                                                        <votes>1</votes>
                                    <watches>11</watches>
                                                                                                                <comments>
                            <comment id="6010389" author="xgen-internal-githook" created="Sun, 14 Jan 2024 12:49:23 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Tommaso Tocci&apos;, &apos;email&apos;: &apos;58224719+toto-dev@users.noreply.github.com&apos;, &apos;username&apos;: &apos;toto-dev&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-82365&quot; title=&quot;Optimize the construction of the balancer&amp;#39;s collection distribution status histogram (2nd attempt)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-82365&quot;&gt;&lt;del&gt;SERVER-82365&lt;/del&gt;&lt;/a&gt; Optimize the construction of the balancer&apos;s collection distribution status histogram (2nd attempt) (#17653)&lt;br/&gt;
Branch: v7.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e3098d7ab70e31b3f69d99ebd43d652cc0ef9a65&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e3098d7ab70e31b3f69d99ebd43d652cc0ef9a65&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5964019" author="xgen-internal-githook" created="Wed, 20 Dec 2023 20:03:37 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Tommaso Tocci&apos;, &apos;email&apos;: &apos;tommaso.tocci@mongodb.com&apos;, &apos;username&apos;: &apos;toto-dev&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-82365&quot; title=&quot;Optimize the construction of the balancer&amp;#39;s collection distribution status histogram (2nd attempt)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-82365&quot;&gt;&lt;del&gt;SERVER-82365&lt;/del&gt;&lt;/a&gt; Optimize the construction of the balancer&apos;s collection distribution status histogram (2nd attempt)&lt;/p&gt;

&lt;p&gt;GitOrigin-RevId: 70ab48625435c1e1717112774cd4359419f8ce70&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/011e3ac229948230d03b9439d33806ce801b3c93&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/011e3ac229948230d03b9439d33806ce801b3c93&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5963711" author="xgen-internal-githook" created="Wed, 20 Dec 2023 18:22:59 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Tommaso Tocci&apos;, &apos;email&apos;: &apos;58224719+toto-dev@users.noreply.github.com&apos;, &apos;username&apos;: &apos;toto-dev&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-82365&quot; title=&quot;Optimize the construction of the balancer&amp;#39;s collection distribution status histogram (2nd attempt)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-82365&quot;&gt;&lt;del&gt;SERVER-82365&lt;/del&gt;&lt;/a&gt; Optimize the construction of the balancer&apos;s collection distribution status histogram (2nd attempt) (#16405)&lt;/p&gt;

&lt;p&gt;GitOrigin-RevId: 330693cf875c8c870a66327db1783181f8905107&lt;br/&gt;
Branch: v6.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2ecd91f7d9263413619812d1bae1375dcf147489&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2ecd91f7d9263413619812d1bae1375dcf147489&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5962585" author="xgen-internal-githook" created="Wed, 20 Dec 2023 12:29:13 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Tommaso Tocci&apos;, &apos;email&apos;: &apos;58224719+toto-dev@users.noreply.github.com&apos;, &apos;username&apos;: &apos;toto-dev&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-82365&quot; title=&quot;Optimize the construction of the balancer&amp;#39;s collection distribution status histogram (2nd attempt)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-82365&quot;&gt;&lt;del&gt;SERVER-82365&lt;/del&gt;&lt;/a&gt; Optimize the construction of the balancer&apos;s collection distribution status histogram (2nd attempt) (#17658)&lt;/p&gt;

&lt;p&gt;GitOrigin-RevId: 439345fe588765f35dcc06ffdc79e14d8b64c047&lt;br/&gt;
Branch: v7.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9f65f27f9849b39acb4359a01700fb70b6a935d0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9f65f27f9849b39acb4359a01700fb70b6a935d0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5962351" author="xgen-internal-githook" created="Wed, 20 Dec 2023 10:28:02 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Tommaso Tocci&apos;, &apos;email&apos;: &apos;58224719+toto-dev@users.noreply.github.com&apos;, &apos;username&apos;: &apos;toto-dev&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-82365&quot; title=&quot;Optimize the construction of the balancer&amp;#39;s collection distribution status histogram (2nd attempt)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-82365&quot;&gt;&lt;del&gt;SERVER-82365&lt;/del&gt;&lt;/a&gt; Optimize the construction of the balancer&apos;s collection distribution status histogram (2nd attempt) (#17653)&lt;/p&gt;

&lt;p&gt;GitOrigin-RevId: 6790c7f2d5b387e7f7d6360ebe8a6a2a054f3c6f&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/306d56603d161fa331b98fc26630a345625b8506&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/306d56603d161fa331b98fc26630a345625b8506&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5899861" author="xgen-internal-githook" created="Wed, 22 Nov 2023 20:17:14 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Tommaso Tocci&apos;, &apos;email&apos;: &apos;tommaso.tocci@mongodb.com&apos;, &apos;username&apos;: &apos;toto-dev&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-82365&quot; title=&quot;Optimize the construction of the balancer&amp;#39;s collection distribution status histogram (2nd attempt)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-82365&quot;&gt;&lt;del&gt;SERVER-82365&lt;/del&gt;&lt;/a&gt; Optimize the construction of the balancer&apos;s collection distribution status histogram (2nd attempt)&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1e19177a8141d486b39a9495eb6a5c912d661df0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1e19177a8141d486b39a9495eb6a5c912d661df0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5870841" author="xgen-internal-githook" created="Fri, 10 Nov 2023 14:14:37 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Tommaso Tocci&apos;, &apos;email&apos;: &apos;tommaso.tocci@mongodb.com&apos;, &apos;username&apos;: &apos;toto-dev&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-82365&quot; title=&quot;Optimize the construction of the balancer&amp;#39;s collection distribution status histogram (2nd attempt)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-82365&quot;&gt;&lt;del&gt;SERVER-82365&lt;/del&gt;&lt;/a&gt; Optimize the construction of the balancer&apos;s collection distribution status histogram (2nd attempt)&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ea2a1668bb4ffe53d5c8b53cf1349b235ba7b600&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ea2a1668bb4ffe53d5c8b53cf1349b235ba7b600&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5808357" author="tommaso.tocci" created="Thu, 26 Oct 2023 07:33:35 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/10gen/mongo/pull/16405&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo/pull/16405&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">
                                        <issuelink>
            <issuekey id="2509413">SERVER-83580</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="2442916">SERVER-81092</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="728865">SERVER-40459</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="26553"><![CDATA[v7.2]]></customfieldvalue>
    <customfieldvalue key="26243"><![CDATA[v7.1]]></customfieldvalue>
    <customfieldvalue key="25578"><![CDATA[v7.0]]></customfieldvalue>
    <customfieldvalue key="23470"><![CDATA[v6.0]]></customfieldvalue>
    <customfieldvalue key="21777"><![CDATA[v5.0]]></customfieldvalue>
    <customfieldvalue key="18953"><![CDATA[v4.4]]></customfieldvalue>
    <customfieldvalue key="16775"><![CDATA[v4.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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 9 Nov 2023 14:57:32 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 weeks, 3 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/SERVER-83580'>SERVER-83580</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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>dbeng-pm-bot</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 weeks, 3 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>tommaso.tocci@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i2x4an:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i2ezt8:</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_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="7721">Sharding EMEA 2023-10-30</customfieldvalue>
    <customfieldvalue id="7888">CAR Team 2023-11-13</customfieldvalue>
    <customfieldvalue id="7889">CAR Team 2023-11-27</customfieldvalue>
    <customfieldvalue id="7890">CAR Team 2023-12-11</customfieldvalue>
    <customfieldvalue id="7891">CAR Team 2023-12-25</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i2wqfz:</customfieldvalue>

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