<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:03:21 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-3540] Automatically enable --smallfiles if less than 100GB disk free</title>
                <link>https://jira.mongodb.org/browse/SERVER-3540</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;More important now with journal prealloc auto on.&lt;/p&gt;

&lt;p&gt;File::freeSpace()&lt;/p&gt;

&lt;p&gt;Issues:&lt;br/&gt;
1) How does this interact with --directoryPerDB&lt;br/&gt;
2) Do we continue checking during runtime and toggle if free space drops below the threshold?&lt;/p&gt;</description>
                <environment></environment>
        <key id="20562">SERVER-3540</key>
            <summary>Automatically enable --smallfiles if less than 100GB disk free</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="mathias@mongodb.com">Mathias Stearn</reporter>
                        <labels>
                    </labels>
                <created>Fri, 5 Aug 2011 19:31:21 +0000</created>
                <updated>Fri, 26 Jun 2015 14:06:51 +0000</updated>
                            <resolved>Fri, 26 Jun 2015 14:06:51 +0000</resolved>
                                                                    <component>Storage</component>
                    <component>Usability</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="951766" author="ian@10gen.com" created="Fri, 26 Jun 2015 14:06:51 +0000"  >&lt;p&gt;Closing as Won&apos;t Fix given the introduction of the WiredTiger storage engine.&lt;/p&gt;</comment>
                            <comment id="58608" author="dwight_10gen" created="Wed, 5 Oct 2011 16:04:39 +0000"  >&lt;p&gt;if they are below the amount of freespace to prealloc lets abend with appropriate error&lt;/p&gt;</comment>
                            <comment id="58028" author="redbeard0531" created="Sat, 1 Oct 2011 02:18:40 +0000"  >&lt;p&gt;Lets take 5-10 minutes next week and figure out what we actually want to do here.&lt;/p&gt;</comment>
                            <comment id="47318" author="dwight_10gen" created="Tue, 9 Aug 2011 09:55:43 +0000"  >&lt;p&gt;a much much simpler (albeit less automatic) option would be to simply log &quot;hey you should think about using --smallfiles as you only have __ disk space&quot;.&lt;/p&gt;</comment>
                            <comment id="47317" author="dwight_10gen" created="Tue, 9 Aug 2011 09:54:41 +0000"  >&lt;p&gt;I would say do this with the journal files (i.e. use the 256MB size rather than 1GB per file).&lt;br/&gt;
Regardless of prealloc: prealloc would use 3GB min but without still will use 2GB.&lt;br/&gt;
I&apos;d not do the smallfiles behavior for the data files as they start at a pretty reasonable size already (64MB).&lt;br/&gt;
I&apos;d say a lower threshold such as 50GB.  using 3GB of 100 is not so bad.&lt;/p&gt;

&lt;p&gt;I suppose for journal files the behavior changing per restart could be pretty easy/clean as we start fresh with no journal files (after recovery) anyway.  The one nuance is that prealloc files persist across restarts. Thus there may be nuances here like going from smaller prealloc files to a new restart that decides to use big ones, or vice versa.  Can be handled and may even do reasonable things as-is but because of this this should only be added if there is a test for that scenario.&lt;/p&gt;

&lt;p&gt;What about: imagine i make a 20GB dedicated volume for journal files.  I wouldn&apos;t want the smaller ones to be used in that case.&lt;/p&gt;

&lt;p&gt;Imagine I have a 1TB volume and it&apos;s just getting full and there is now 100GB free.  I wouldn&apos;t want the journal file sizes to then change, say i&apos;d been using mongod for a year and disk is just getting fullish.  Changing to different size files would be surprising then and it might behave slightly differently even.&lt;/p&gt;</comment>
                            <comment id="46690" author="scotthernandez" created="Fri, 5 Aug 2011 19:36:16 +0000"  >&lt;p&gt;2.) Yes, this should happen on each alloc. (IMHO)&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 5 Aug 2011 19:36:16 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 33 weeks, 5 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 33 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dwight@mongodb.com</customfieldvalue>
            <customfieldvalue>ian@mongodb.com</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrouh3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs7btb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6569</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>
                                

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

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