title: How to avoid data loss on server failure with MongoDB on a single machine?
body: <p>I have read that mongoDB don't write data to disk right away, it does this periodically.</p>
  
  <p>Any thoughts on how to deal with this?</p>