<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:08:45 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>[DOCS-13797] [SERVER] Limit the number of simultaneous index builds</title>
                <link>https://jira.mongodb.org/browse/DOCS-13797</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;From &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47155&quot; title=&quot;Limit the number of simultaneous index builds running from user connections to 3&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47155&quot;&gt;&lt;del&gt;SERVER-47155&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h2&gt;&lt;a name=&quot;Description&quot;&gt;&lt;/a&gt;Description&lt;/h2&gt;

    &lt;div class=&quot;panel&quot; style=&quot;background-color: #c2d2c2;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;background-color: #239eb0;&quot;&gt;&lt;b&gt;Downstream Change Summary&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #c2d2c2;&quot;&gt;
&lt;p&gt;    Existing, undocumented behavior as of 4.2.3 and 4.4.0:&lt;br/&gt;
In an attempt to bound memory usage and resource utilization, the server limits on the number of concurrent index builds started by a user on a primary node to 3.&lt;/p&gt;

&lt;p&gt;New behavior (as of 4.4.0 only):&lt;br/&gt;
Any index builds started over the limit will block until the number of concurrent index builds drops below the limit. The log message &quot;Too many index builds running simultaneously, waiting until the number of active index builds is below the threshold&quot; (ID 4715500) will be logged when the limit is reached and an index build has blocked.&lt;/p&gt;

&lt;p&gt;This default limit can be raised with the maxNumActiveUserIndexBuilds setParameter. This can be changed at startup or runtime.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;h2&gt;&lt;a name=&quot;DescriptionofLinkedTicket&quot;&gt;&lt;/a&gt;Description of Linked Ticket&lt;/h2&gt;
&lt;p&gt;    Each index build is allowed to use up to 200MB of memory outside of the WT cache by default. This is controlled by&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/9d420697bd801b8faf0937fb417bc5c58f92872d/src/mongo/db/catalog/multi_index_block.idl#L45-L52&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;maxIndexBuildMemoryUsageMegabytes&lt;/a&gt;. In an attempt to bound memory usage and reduce WT cache pressure, we limit the number of concurrent index builds started by a user on a primary node.&lt;/p&gt;

&lt;p&gt;Any index builds started over the limit will block until the number of concurrent index builds drops below the limit. The log message &quot;Too many index builds running simultaneously, waiting until the number of active index builds is below the threshold&quot; (ID &lt;a href=&quot;https://github.com/mongodb/mongo/blob/9d420697bd801b8faf0937fb417bc5c58f92872d/src/mongo/db/index_builds_coordinator_mongod.cpp#L157-L159&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;4715500&lt;/a&gt;) will be logged when the limit is reached and an index build has blocked.&lt;/p&gt;

&lt;p&gt;This default limit can be raised with the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/9d420697bd801b8faf0937fb417bc5c58f92872d/src/mongo/db/storage/two_phase_index_build_knobs.idl#L41&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;maxNumActiveUserIndexBuilds&lt;/a&gt; setParameter. This can be changed at startup or runtime.&lt;/p&gt;
&lt;h5&gt;&lt;a name=&quot;OriginalDescription&quot;&gt;&lt;/a&gt;Original Description&lt;/h5&gt;

&lt;p&gt;Both the primary and secondary nodes will have an unlimited thread pool size. This is done to allow secondary nodes to startup as many index builders as necessary in order to prevent scheduling deadlocks during initial sync or oplog application.&lt;/p&gt;

&lt;p&gt;When commands are run from user connections that need to create indexes, those commands will hang until there are less than 3 running index builder threads, or until the operation is interrupted.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;


&lt;h2&gt;&lt;a name=&quot;Scopeofchanges&quot;&gt;&lt;/a&gt;Scope of changes&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;ImpacttoOtherDocs&quot;&gt;&lt;/a&gt;Impact to Other Docs&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;MVP%28WorkandDate%29&quot;&gt;&lt;/a&gt;MVP (Work and Date)&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;Resources%28ScopeorDesignDocs%2CInvision%2Cetc.%29&quot;&gt;&lt;/a&gt;Resources (Scope or Design Docs, Invision, etc.)&lt;/h2&gt;
</description>
                <environment></environment>
        <key id="1423019">DOCS-13797</key>
            <summary>[SERVER] Limit the number of simultaneous index builds</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="dave.cuthbert@mongodb.com">Dave Cuthbert</assignee>
                                    <reporter username="backlog-server-pm">Backlog - Core Eng Program Management Team</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Jul 2020 15:24:56 +0000</created>
                <updated>Mon, 13 Nov 2023 18:03:48 +0000</updated>
                            <resolved>Thu, 1 Sep 2022 16:45:14 +0000</resolved>
                                    <version>4.4.0</version>
                    <version>5.0.0</version>
                    <version>6.0.0</version>
                                    <fixVersion>4.4.0-rc0</fixVersion>
                    <fixVersion>4.7.0</fixVersion>
                    <fixVersion>Server_Docs_20231030</fixVersion>
                    <fixVersion>Server_Docs_20231106</fixVersion>
                    <fixVersion>Server_Docs_20231105</fixVersion>
                    <fixVersion>Server_Docs_20231113</fixVersion>
                                    <component>manual</component>
                    <component>Server</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="4805805" author="xgen-internal-githook" created="Tue, 6 Sep 2022 18:56:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dave Cuthbert&apos;, &apos;email&apos;: &apos;69165704+davemungo@users.noreply.github.com&apos;, &apos;username&apos;: &apos;davemungo&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13797&quot; title=&quot;[SERVER] Limit the number of simultaneous index builds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13797&quot;&gt;&lt;del&gt;DOCS-13797&lt;/del&gt;&lt;/a&gt; limit simultaneous index builds (#1649)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13797&quot; title=&quot;[SERVER] Limit the number of simultaneous index builds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13797&quot;&gt;&lt;del&gt;DOCS-13797&lt;/del&gt;&lt;/a&gt; limit simultaneous index builds&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Review feedback&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Review feedback&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Review feedback&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Review feedback&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Review feedback&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Review feedback&lt;br/&gt;
Branch: v6.1&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/docs-mongodb-internal/commit/20d116dc9a75e3ecdf54f18ae427191bf2fe9e0f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/docs-mongodb-internal/commit/20d116dc9a75e3ecdf54f18ae427191bf2fe9e0f&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="4795683" author="xgen-internal-githook" created="Thu, 1 Sep 2022 16:30:04 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dave Cuthbert&apos;, &apos;email&apos;: &apos;69165704+davemungo@users.noreply.github.com&apos;, &apos;username&apos;: &apos;davemungo&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13797&quot; title=&quot;[SERVER] Limit the number of simultaneous index builds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13797&quot;&gt;&lt;del&gt;DOCS-13797&lt;/del&gt;&lt;/a&gt; BACKPORT (#1749)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/docs-mongodb-internal/commit/b30745c04d0b02fa96771c591000ecb751033fd6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/docs-mongodb-internal/commit/b30745c04d0b02fa96771c591000ecb751033fd6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4795679" author="xgen-internal-githook" created="Thu, 1 Sep 2022 16:29:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dave Cuthbert&apos;, &apos;email&apos;: &apos;69165704+davemungo@users.noreply.github.com&apos;, &apos;username&apos;: &apos;davemungo&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13797&quot; title=&quot;[SERVER] Limit the number of simultaneous index builds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13797&quot;&gt;&lt;del&gt;DOCS-13797&lt;/del&gt;&lt;/a&gt; BACKPORT (#1748)&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/docs-mongodb-internal/commit/c44fbb54d04ae1bc9292d76c3cab5f4514cb9aa4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/docs-mongodb-internal/commit/c44fbb54d04ae1bc9292d76c3cab5f4514cb9aa4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4793677" author="xgen-internal-githook" created="Wed, 31 Aug 2022 22:21:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dave Cuthbert&apos;, &apos;email&apos;: &apos;69165704+davemungo@users.noreply.github.com&apos;, &apos;username&apos;: &apos;davemungo&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13797&quot; title=&quot;[SERVER] Limit the number of simultaneous index builds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13797&quot;&gt;&lt;del&gt;DOCS-13797&lt;/del&gt;&lt;/a&gt; limit simultaneous index builds (#1649)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13797&quot; title=&quot;[SERVER] Limit the number of simultaneous index builds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13797&quot;&gt;&lt;del&gt;DOCS-13797&lt;/del&gt;&lt;/a&gt; limit simultaneous index builds&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Review feedback&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Review feedback&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Review feedback&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Review feedback&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Review feedback&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Review feedback&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/docs-mongodb-internal/commit/20d116dc9a75e3ecdf54f18ae427191bf2fe9e0f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/docs-mongodb-internal/commit/20d116dc9a75e3ecdf54f18ae427191bf2fe9e0f&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="3312059" author="milkie" created="Wed, 29 Jul 2020 14:52:06 +0000"  >&lt;p&gt;This ticket is automatically generated by someone checking the &quot;Docs&quot; checkbox in the Downstream Changes tab of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47155&quot; title=&quot;Limit the number of simultaneous index builds running from user connections to 3&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47155&quot;&gt;&lt;del&gt;SERVER-47155&lt;/del&gt;&lt;/a&gt;.  It fills in this ticket with the contents of the Downstream Changes box appearing on that same tab.  In general we haven&apos;t been using that particular workflow for SERVER tickets for projects; instead we do it via the PM ticket (which has a similar checkbox).  In this case however, the SERVER ticket wasn&apos;t part of a project and was standalone, and we just forgot to request that it get documented.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1431083">DOCS-13809</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                            <outwardlinks description="documents">
                                        <issuelink>
            <issuekey id="1294175">SERVER-47155</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5006R00001nIXDvQAO]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 29 Jul 2020 14:28:41 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 22 weeks, 1 day 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>DOCSP-12974</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_14873" key="com.atlassian.jira.plugin.system.customfieldtypes:multiuserpicker">
                        <customfieldname>External Reviewer</customfieldname>
                        <customfieldvalues>
                                    <customfieldvalue><![CDATA[marie.atterbury@mongodb.com]]></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>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 22 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-pm</customfieldvalue>
            <customfieldvalue>dave.cuthbert@mongodb.com</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxx4mn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxjxnz:</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_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxwqvz:</customfieldvalue>

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