<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:52:49 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-21] Feature-Req: Flush this record(s) to disk</title>
                <link>https://jira.mongodb.org/browse/SERVER-21</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;It would be interesting if a client could issue requests for selective msync()s on the server.&lt;br/&gt;
Commands like &quot;flush these records to disk&quot; or &quot;flush this collection to disk&quot;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="10068">SERVER-21</key>
            <summary>Feature-Req: Flush this record(s) to disk</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="raz">Jim Jones</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Apr 2009 20:41:05 +0000</created>
                <updated>Tue, 25 Aug 2009 11:37:21 +0000</updated>
                            <resolved>Tue, 25 Aug 2009 11:37:21 +0000</resolved>
                                                                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="10547" author="eliot" created="Tue, 25 Aug 2009 11:37:21 +0000"  >&lt;p&gt;see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-255&quot; title=&quot;add optional write lock to fsync command&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-255&quot;&gt;&lt;del&gt;SERVER-255&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="10179" author="raz" created="Mon, 1 Jun 2009 05:13:59 +0000"  >&lt;p&gt;Well, mongodump is still a lot more expensive than a constant-time snapshot on our SAN. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;With mongodump we have to:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Dump to the local disk (it can&apos;t write to the network, yet)&lt;/li&gt;
	&lt;li&gt;Transfer that dump to elsewhere&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Both can take a while for multi-gigabyte databases.&lt;/p&gt;

&lt;p&gt;With a snapshot we&apos;d only have to:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Halt mongod&lt;/li&gt;
	&lt;li&gt;Take the snapshot (which is a sub-second operation)&lt;/li&gt;
	&lt;li&gt;Resume mongod&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I realize we could just stop mongod altogether but losing all the cached data is undesirable, we&apos;d like to take snapshots hourly.&lt;/p&gt;</comment>
                            <comment id="10178" author="eliot" created="Sun, 31 May 2009 19:24:37 +0000"  >&lt;p&gt;unless you need an exaact moment in time snapshot - using mongodump will be almost as fast - and won&apos;t halt the db&lt;/p&gt;</comment>
                            <comment id="10177" author="raz" created="Sun, 31 May 2009 19:19:05 +0000"  >&lt;p&gt;A related use-case:&lt;/p&gt;

&lt;p&gt;For backup purposes it would be good if we could, on request, sync the entire datastore to disk and halt mongod temporarily (for taking a filesystem snapshot). This could either be implemented through client commands, or under unix with the traditional SIGSTOP/SIGCONT signals.&lt;/p&gt;

&lt;p&gt;Ideally mongod would also report back after entering the frozen state, e.g. by touching a predefined file (configured by command line switch).&lt;/p&gt;

&lt;p&gt;A simple backup-script could then look like this:&lt;/p&gt;

&lt;p&gt;kill -SIGSTOP `pidof mongod`&lt;br/&gt;
while [ ! -e /var/mongo/frozen ]; do&lt;br/&gt;
   sleep 1&lt;br/&gt;
done&lt;br/&gt;
echo &quot;Mongo is frozen, taking snapshot&quot;&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;snapshot command goes here&lt;br/&gt;
kill -SIGCONT `pidof mongod`&lt;br/&gt;
while [ -e /var/mongo/frozen ]; do&lt;br/&gt;
   sleep 1&lt;br/&gt;
done&lt;br/&gt;
echo &quot;Mongo is back!&quot;&lt;/li&gt;
&lt;/ol&gt;
</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 31 May 2009 19:24:37 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        14 years, 26 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_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>
                            14 years, 26 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>raz</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpyrz:</customfieldvalue>

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

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

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