Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

MongoDB safe and fsync Explained

MongoDB safe and fsync Explained:

Kristina Chodorow explains the MongoDB safe and fsync options:

safe and fsync are not the same, here's a rundown of the options:

  • safe => false: do not wait for a db response
  • safe => true: wait for a db response
  • safe => num: wait for that many servers to have the write before returning
  • fsync => true: fsync the write to disk before returning. fsync => true implies safe=>true, but not visa versa.
  • If fsync=>false and safe=>true and the write could be in successfully applied to a mmapped file but not yet written to disk.

Related to MongoDB durability.

Original title and link for this post: MongoDB safe and fsync Explained (published on the NoSQL blog: myNoSQL)

Source Article
Comments
0
Be the first to comment

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect
avatar
Tags: fsync, safe, write, mongodb
DO NOT REPLY New: REQUEST_URI should be explained
Aug 11, 2010
https://issues.apache.org/bugzilla/show_bug.cgi?id=49741 Summary: REQUEST_URI should be explained Product: Apache httpd-2 Version: 2.2-HEAD Platform: PC OS/Version: Linux Status: NEW …

Fsync and Global Lock Percentages
Aug 25, 2010
Hi, I have a few questions regarding mongostat data I'm seeing on a production machine. We've setup our server with the default syncdelay of 60 seconds. Watching mongostat's output, the t|r|w fields are all zero until one iteration before the fsync…

Re: Safe way to backup an RDB file
Jul 28, 2010
Can an AOF file be backed up with a simple 'cp' command? Or must we create a dump file to do a backup? Thanks, David On Jul 27, 3:39 pm, Salvatore Sanfilippo <anti### @gmail.com> wrote: > On Tue, Jul 27, 2010 at 9:31 AM, teleo…

Re: Is it safe to replace master.db file?
Jun 9, 2010
OK thanks for the reply. I have a partition and all my entries are under that partition. What I replaced was the master.db from in system folder not in my partition folder so will it affect?

Is it safe to both import and inherit from a class?
Aug 26, 2010
I have some classes that inherit from others. For instance, the ldapconsumer and ldapprovider classes inherit from the ldap class. On an external node, I might have both ldap and ldapconsumer classes, so the ldap class is being "invoked" directly,…

Is it safe to replace master.db file?
Jun 8, 2010
Hi, I am using ApacheDs 1.5.4, after running successfully for a long time, now getting the following error: Exception in thread "main" java.lang.NullPointerException at org.apache.directory.server.core.entry.ClonedServerEntry.<init>…

Do implementations of Watcher need to be thread-safe?
Jul 21, 2010
Hi, Do implementations of Watcher need to be thread-safe, or can I assume that process(...) will always be called by the same thread? Thanks, Josh "Ua" Ball

safe to use --replSet and --master at the same time?
Aug 23, 2010
I am going to move towards using replica sets, but don't want to go all at once. Can I still use some regular slaves on a replica set master? Should I set --replSet and --master on the command line?

difference between safe and sync options in PHP Driver
Aug 26, 2010
Hi, Can anyone make me clear on following questions? http://us3.php.net/manual/en/mongocollection.remove.php http://us3.php.net/manual/en/mongocollection.insert.php http://us3.php.net/manual/en/mongocollection.update.php So does that mean safe…

DO NOT REPLY SSI Servlet should support safe configuration
Jul 16, 2010
https://issues.apache.org/bugzilla/show_bug.cgi?id=48960 Mark Thomas <ma### @apache.org> changed: What |Removed |Added