<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:19:08 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-28818] Enable configuring RAM usage for MongoDB instance</title>
                <link>https://jira.mongodb.org/browse/SERVER-28818</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Quote from docs:&lt;br/&gt;
&lt;cite&gt;&quot;The operating system will use the available free memory for filesystem cache, which allows the compressed MongoDB data files to stay in memory.&quot;&lt;/cite&gt;&lt;/p&gt;

&lt;p&gt;We need an instrument to reduce memory (RAM) usage of whole MongoDB subsystem because we should start several services on server. At this moment we can limit only WiredTiger internal cache (storage.wiredTiger.engineConfig.cacheSizeGB config setting). &lt;br/&gt;
For windows users the only one way to limit entire instance memory usage - to create virtual machine for MongoDB. &lt;br/&gt;
Why don&apos;t you add configuration setting to limit entire RAM usage?&lt;br/&gt;
Do not offer OS tools.&lt;/p&gt;</description>
                <environment></environment>
        <key id="374590">SERVER-28818</key>
            <summary>Enable configuring RAM usage for MongoDB instance</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="13203">Gone away</resolution>
                                        <assignee username="backlog-server-servicearch">Backlog - Service Architecture</assignee>
                                    <reporter username="tomak_k.s.">Tomak Ksenia</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Apr 2017 12:11:51 +0000</created>
                <updated>Fri, 27 Oct 2023 20:44:08 +0000</updated>
                            <resolved>Thu, 13 Jun 2019 19:33:22 +0000</resolved>
                                                                    <component>Admin</component>
                    <component>Internal Code</component>
                                        <votes>2</votes>
                                    <watches>13</watches>
                                                                                                                <comments>
                            <comment id="2283885" author="ratika.gandhi" created="Thu, 13 Jun 2019 19:33:22 +0000"  >&lt;p&gt;As of &lt;a href=&quot;https://jira.mongodb.org/browse/WT-2670&quot; title=&quot;Inefficient I/O when read full DB (poor readahead)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2670&quot;&gt;&lt;del&gt;WT-2670&lt;/del&gt;&lt;/a&gt;, file system cache behavior on windows is non greedy by default.&#160;&lt;br/&gt;
As such, we think that the new feature reported in this ticket is no longer necessary. Please open a new ticket if you&apos;re asking for something different than this.&#160;&lt;/p&gt;</comment>
                            <comment id="1828804" author="bruce.lucas@10gen.com" created="Fri, 9 Mar 2018 15:30:31 +0000"  >&lt;p&gt;Hi Tomak,&lt;/p&gt;

&lt;p&gt;In general it&apos;s not possible to place specific limits on the amount of memory used by the operating system for its file system cache on behalf of mongod.&lt;/p&gt;

&lt;p&gt;However, since you are running on Windows, I suspect you may have been encountering an issue that we fixed in &lt;a href=&quot;https://jira.mongodb.org/browse/WT-2670&quot; title=&quot;Inefficient I/O when read full DB (poor readahead)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2670&quot;&gt;&lt;del&gt;WT-2670&lt;/del&gt;&lt;/a&gt;: prior to this fix, WiredTiger specified POSIX_FADV_RANDOM for the files that it opened. On Windows this has the unfortunate side effect of making o/s file cache usage for that file &quot;greedy&quot;: the o/s won&apos;t release cached file data when needed for other purposes. Since &lt;a href=&quot;https://jira.mongodb.org/browse/WT-2670&quot; title=&quot;Inefficient I/O when read full DB (poor readahead)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2670&quot;&gt;&lt;del&gt;WT-2670&lt;/del&gt;&lt;/a&gt; we no longer specify POSIX_FADV_RANDOM by default, and this results in much better cache behavior: the o/s will cache the files, but will release that memory when needed.&lt;/p&gt;

&lt;p&gt;Can you test your workload on a version that includes &lt;a href=&quot;https://jira.mongodb.org/browse/WT-2670&quot; title=&quot;Inefficient I/O when read full DB (poor readahead)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2670&quot;&gt;&lt;del&gt;WT-2670&lt;/del&gt;&lt;/a&gt; and let us know if that addresses your concern? Those versions would be 3.2.12 or later, 3.4.2 or later, and 3.6.0 or later.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Bruce&lt;/p&gt;</comment>
                            <comment id="1827122" author="boas.enkler@busliniensuche.de" created="Thu, 8 Mar 2018 12:49:02 +0000"  >&lt;p&gt;@Ramon Fernandez  an other point which makes this from my point of view a keyfeature is that we need it for running in kubernetes. &lt;br/&gt;
Currently as mongodb isn&apos;t aware of the ram a kubernetes node has the nodes run often in out out memory scnearios and there fore the pods are getting &quot;uncontrolled&quot; and suddenly terminated.&lt;/p&gt;

&lt;p&gt;As a result in some scenarios (e.g. batch imports or other heavy data related operations) mongodb isn&apos;t a good solution in k8s scenarios.&lt;/p&gt;

&lt;p&gt;or is there any way to mimic the cgroup behavior in kubernetes pods?&lt;/p&gt;</comment>
                            <comment id="1554420" author="tomak_k.s." created="Fri, 21 Apr 2017 06:15:52 +0000"  >&lt;p&gt;Thanks for your reply. We will track this issue.&lt;br/&gt;
Unfortunately, we have windows servers on production. It means we haven&apos;t OS tools.&lt;/p&gt;</comment>
                            <comment id="1553709" author="ramon.fernandez" created="Thu, 20 Apr 2017 15:29:51 +0000"  >&lt;p&gt;Thanks for your report &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tomak_k.s.&quot; class=&quot;user-hover&quot; rel=&quot;tomak_k.s.&quot;&gt;tomak_k.s.&lt;/a&gt;. The functionality you request is part of our long-term roadmap, so I&apos;m going to use this ticket to keep track of it. Unfortunately this feature won&apos;t happen for a while, and until then the only way to limit the amount of memory &lt;tt&gt;mongod&lt;/tt&gt; uses is via operating system tools (e.g.: cgroups on linux).&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="507714">SERVER-33742</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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25132"><![CDATA[Service Arch]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000aO7oUIAS]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 17 Apr 2017 13:05:00 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 34 weeks, 6 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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 34 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-servicearch</customfieldvalue>
            <customfieldvalue>boas.enkler@busliniensuche.de</customfieldvalue>
            <customfieldvalue>bruce.lucas@mongodb.com</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
            <customfieldvalue>ratika.gandhi@mongodb.com</customfieldvalue>
            <customfieldvalue>tomak_k.s.</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht5wfb:</customfieldvalue>

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

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

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