<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:44:03 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-58270] Create configureCollectionAutoSplitter command </title>
                <link>https://jira.mongodb.org/browse/SERVER-58270</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;New balancer per-collection command configureCollectionAutoSplitter to configure both the default chunk size and the auto-splitting behaviour, rather than doing direct writes against config.settings. The global cluster configuration in config.settings will remain as well, but any configuration done by this command will override the global cluster settings. The command will have the following parameters:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;b&gt;configureCollectionAutoSplitter (string):&lt;/b&gt; db.collection to which to apply the configuration&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;defaultChunkSize (int, optional):&lt;/b&gt; The new default chunk size in MB. If the new default chunk size is smaller than what it currently is, just sets the new value, but doesn&#8217;t perform any splits; if the new default chunk size is the same or larger than what it currently is, consults the defragment parameter below for decision whether to start defragmentation for that collection.&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;balancerShouldMergeChunks (bool, optional defaults to false):&lt;/b&gt; Can be specified when increasing or specifying the same defaultChunkSize. If set to true, will put the collection in a &#8220;defragmentation&#8221; mode whereby the balancer will merge and move chunks around in order to yield a number of chunks approximately equal to the TotalDataSize/DefaultChunkSize evenly distributed across the appropriate shards. The defragmentation is a one-time operation (which potentially may take a long time) and after that the collection will leave the &#8220;defragmentation&#8221; mode. Its progress will be able to be monitored from the return of the &lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/balancerCollectionStatus/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;balancerCollectionStatus&lt;/a&gt; command.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;b&gt;enableAutoSplitter (bool, optional):&lt;/b&gt; Specifies whether the auto-splitter should be running or not for this collection.&lt;/p&gt;
&lt;h2&gt;&lt;a name=&quot;Authorisation&quot;&gt;&lt;/a&gt;&lt;b&gt;Authorisation&lt;/b&gt;&lt;/h2&gt;

&lt;p&gt;The new command&#8217;s authorisation will exactly mimic that of the move/split/merge commands and will use the splitChunk action and additionally use the moveChunk action if &lt;b&gt;balancerShouldMergeChunks&lt;/b&gt; is set to &lt;em&gt;true&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;a name=&quot;ExampleUseCases&quot;&gt;&lt;/a&gt;&lt;b&gt;Example Use Cases&lt;/b&gt;&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;User wants to turn on/off autosplitting for a specific collection:&lt;/li&gt;
	&lt;li&gt;configureCollectionAutoSplitter: &#8220;db.collection&#8221;, autoSplit: true/false&lt;/li&gt;
&lt;/ul&gt;



&lt;ul&gt;
	&lt;li&gt;User wants to increase to increase default chunk size but not merge chunks (routing table size will remain the same):&lt;/li&gt;
	&lt;li&gt;configureCollectionAutoSplitter: &#8220;db.collection&#8221;, defaultChunkSize: 256, mergeChunks:false&lt;/li&gt;
&lt;/ul&gt;



&lt;ul&gt;
	&lt;li&gt;User wants to merge small chunks (routing table size shrinks):&lt;/li&gt;
	&lt;li&gt;configureCollectionAutoSplitter: &#8220;db.collection&#8221;, mergeChunks:true&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="1808733">SERVER-58270</key>
            <summary>Create configureCollectionAutoSplitter command </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="simon.gratzer@mongodb.com">Simon Gratzer</assignee>
                                    <reporter username="simon.gratzer@mongodb.com">Simon Gratzer</reporter>
                        <labels>
                            <label>PM-2321-Balancer</label>
                    </labels>
                <created>Mon, 5 Jul 2021 13:33:53 +0000</created>
                <updated>Sun, 29 Oct 2023 21:51:20 +0000</updated>
                            <resolved>Wed, 4 Aug 2021 07:36:16 +0000</resolved>
                                                    <fixVersion>5.1.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4107233" author="JIRAUSER1259052" created="Wed, 6 Oct 2021 18:21:00 +0000"  >&lt;p&gt;Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it&#8217;s been triggered. For more active release information, please keep an eye on #server-release. Thank you!&lt;/p&gt;</comment>
                            <comment id="3972455" author="xgen-internal-githook" created="Fri, 30 Jul 2021 12:09:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Simon Graetzer&apos;, &apos;email&apos;: &apos;simon.gratzer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-58270&quot; title=&quot;Create configureCollectionAutoSplitter command &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-58270&quot;&gt;&lt;del&gt;SERVER-58270&lt;/del&gt;&lt;/a&gt; Create configureCollectionAutoSplitter command&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/66708080ab5db302558f7bd33293167d181f3858&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/66708080ab5db302558f7bd33293167d181f3858&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="2164226">SERVER-70768</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1695562">SERVER-56464</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</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>Fri, 30 Jul 2021 12:09:50 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 18 weeks 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_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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-2321</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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 18 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>simon.gratzer@mongodb.com</customfieldvalue>
            <customfieldvalue>vivian.ge@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzqjmf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzawkv:</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="4980">Sharding EMEA 2021-07-12</customfieldvalue>
    <customfieldvalue id="4981">Sharding EMEA 2021-07-26</customfieldvalue>
    <customfieldvalue id="5178">Sharding EMEA 2021-08-09</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|hzq5vj:</customfieldvalue>

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