0

There is little documentation available about wiredTiger on MongoDB website and it does not cover many configuration options listed on the wiredTiger website. Based on the wiredtiger documentation (http://source.wiredtiger.com/develop/tune_durability.html#tune_durability_flush_config), I included the transaction durability options as below -

storage:
    engine: "wiredTiger"
    wiredTiger:
        engineConfig:
            cacheSizeGB: 3
            configString: "log=(enabled),transaction_sync=(enabled=true,method=fsync)"

My question is, is this supported? The mongoDB server starts without complaining about this option, but how can I verify that it is in effect?

Thank you

4

1 回答 1

3

You clarified that you want to persist the writes to disk as frequently as possible, if possible in real time.

You can achieve that with WiredTiger without changing any of the startup parameters. Using writeConcern j:true or "journal acknowledged" your writes will be acknowledged only after they are written to the journal and flushed to disk. You can set your default writeConcern on the connection to j:true or you can set it on individual writes, depending on your requirements.

于 2015-03-23T21:27:04.910 回答