<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:57:17 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-21411] allow limits on the amount of data stored on a shard</title>
                <link>https://jira.mongodb.org/browse/SERVER-21411</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;maxSize does not limit the data on shard&lt;/p&gt;

&lt;h6&gt;&lt;a name=&quot;OriginalDescription&quot;&gt;&lt;/a&gt;Original Description&lt;/h6&gt;

&lt;p&gt;Hi gents, &lt;/p&gt;

&lt;p&gt;we have been playing with &quot;maxSize&quot; option in command sh.addShard(&quot;SERVER&quot;, maxSize:400) and apparently it doesn`t work at all. &lt;/p&gt;

&lt;p&gt;Mongos ignores the switch and saves data to the shard without any size limit.&lt;br/&gt;
Tested under version 3.2.0-rc2.&lt;/p&gt;


&lt;p&gt;Regards \ Marian&lt;/p&gt;</description>
                <environment></environment>
        <key id="238904">SERVER-21411</key>
            <summary>allow limits on the amount of data stored on a shard</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="3">Duplicate</resolution>
                                        <assignee username="backlog-server-sharding">[DO NOT USE] Backlog - Sharding Team</assignee>
                                    <reporter username="marian.badinka@dhl.com">marian badinka</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 Nov 2015 19:25:42 +0000</created>
                <updated>Tue, 6 Dec 2022 04:40:01 +0000</updated>
                            <resolved>Mon, 12 Jun 2017 17:22:30 +0000</resolved>
                                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1594577" author="thomas.schubert" created="Mon, 12 Jun 2017 17:22:18 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=marian.badinka%40dhl.com&quot; class=&quot;user-hover&quot; rel=&quot;marian.badinka@dhl.com&quot;&gt;marian.badinka@dhl.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;On second look, this appears to a be duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2246&quot; title=&quot;Pay (more) attention to sharding maxSize&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2246&quot;&gt;&lt;del&gt;SERVER-2246&lt;/del&gt;&lt;/a&gt;. Please feel free to vote for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2246&quot; title=&quot;Pay (more) attention to sharding maxSize&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2246&quot;&gt;&lt;del&gt;SERVER-2246&lt;/del&gt;&lt;/a&gt; and watch it for updates.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1103228" author="marian.badinka@dhl.com" created="Wed, 2 Dec 2015 15:23:44 +0000"  >&lt;p&gt;Hi Thomas,&lt;/p&gt;

&lt;p&gt;we have 20+ deployments of MongoDB in our data center. Many servers have spare CPU and Disc capacity. The idea behind is to utilize the spare parts of existing mongo instances (mainly disk space, CPU limit would be also great) by another projects. &lt;/p&gt;

&lt;p&gt;We could create a Sharded Cluster with shards built only from spare parts of existing servers. But to avoid impact of this new Cluster on existing projects, the limit parameter is required.&lt;/p&gt;

&lt;p&gt;F.e. A Sharded Cluster for BI tools could use only 10 GB from Server1, only 20 GB and 3 CPUs from Server2, and only 4 GB and 8 CPU from Server3. &lt;/p&gt;

&lt;p&gt;The limit parameter could ensure there is no impact on existing Mongod projects by space growing of another database.&lt;/p&gt;


&lt;p&gt;Regards \ Marian&lt;/p&gt;
</comment>
                            <comment id="1101404" author="thomas.schubert" created="Mon, 30 Nov 2015 23:33:27 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=marian.badinka%40dhl.com&quot; class=&quot;user-hover&quot; rel=&quot;marian.badinka@dhl.com&quot;&gt;marian.badinka@dhl.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;That&apos;s right, the maxSize only affects which nodes are selected to send new chunks. For others who are following this ticket, the documentation can be found &lt;a href=&quot;https://docs.mongodb.org/manual/tutorial/configure-sharded-cluster-balancer/#change-the-maximum-storage-size-for-a-given-shard&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;At this time, this is no way to limit the amount of data stored on a shard beyond this functionality. Since I am not aware of a current feature request, I am repurposing this ticket to an improvement request.&lt;/p&gt;

&lt;p&gt;If you could share your use-case it would help us to understand the specific functionality that you are looking for. &lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1094259" author="marian.badinka@dhl.com" created="Fri, 20 Nov 2015 14:49:27 +0000"  >&lt;p&gt;Hi Thomas,&lt;/p&gt;


&lt;p&gt;Yes we use WT.&lt;/p&gt;

&lt;p&gt;What we observed, the mongos doesn`t accept the limit parameter and moving on with saving data to any shard regardless any limit set.&lt;/p&gt;

&lt;p&gt;I understand now that &quot; The maxSize value only affects the balancer&#8217;s selection of destination shards.&quot; So if the balancer is OFF, no limit is used.&lt;/p&gt;

&lt;p&gt;But is there any way how to say mongos....utilise only f.e. 500 MB for this shard and do not go behind ?&lt;/p&gt;

&lt;p&gt;Thanks \ marian&lt;/p&gt;

</comment>
                            <comment id="1092129" author="thomas.schubert" created="Wed, 18 Nov 2015 20:06:17 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=marian.badinka%40dhl.com&quot; class=&quot;user-hover&quot; rel=&quot;marian.badinka@dhl.com&quot;&gt;marian.badinka@dhl.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;I have noticed that the limits are not strictly observed, however the limit was enforced and the balancer did stop sending new chunks to the shard. What level of discrepancy between the maxSize limit and the storage size are you seeing? What&apos;s the impact of this discrepancy on your deployment? Are you using WiredTiger or mmapv1?&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1086002" author="marian.badinka@dhl.com" created="Wed, 11 Nov 2015 20:21:16 +0000"  >&lt;p&gt;Hi Ramon, &lt;/p&gt;

&lt;p&gt;yes yes, &lt;br/&gt;
actually we used the runCommand:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&amp;gt;use admin&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&amp;gt;db.runCommand({addShard:&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;server:55555&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;,maxSize:400})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;the command sh.addShard doesn`t support maxSize..&lt;/p&gt;

&lt;p&gt;Unfortunately the result is same,.....no limit is accepted.&lt;/p&gt;

&lt;p&gt;Thanks \ MArian&lt;/p&gt;</comment>
                            <comment id="1085962" author="ramon.fernandez" created="Wed, 11 Nov 2015 19:56:01 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=marian.badinka%40dhl.com&quot; class=&quot;user-hover&quot; rel=&quot;marian.badinka@dhl.com&quot;&gt;marian.badinka@dhl.com&lt;/a&gt;, the &lt;tt&gt;sh.addShard()&lt;/tt&gt; helper takes only one argument; quoting from the &lt;a href=&quot;https://docs.mongodb.org/manual/reference/method/sh.addShard/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;sh.addShard()&lt;/tt&gt; documentation&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The sh.addShard() method is a helper for the addShard command. The addShard command has additional options which are not available with this helper.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Have you tried using the &lt;tt&gt;addShard&lt;/tt&gt; command and see if the &lt;tt&gt;maxSize&lt;/tt&gt; parameter takes effect?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="14004">SERVER-2246</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>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25141"><![CDATA[Sharding]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 11 Nov 2015 19:56:01 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 35 weeks, 2 days 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_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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 35 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-sharding</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>marian.badinka@dhl.com</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkp2v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrfsfb:</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_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>
                                    <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hsfgmn:</customfieldvalue>

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