4 ms·
I assume when people talk about fsync, they actually mean journaling? I'm not sure if there's ever a good reason to use {fsync: true} vs {j: true}
by latch 15y ago
I assume when people talk about fsync, they actually mean journaling?
I'm not sure if there's ever a good reason to use {fsync: true} vs {j: true}
- rfurlan 15y agoFsync means "wait for acknowledgement after each request", if Fsync is off, all calls are fire-and-forget, no errors are reported. There are a few Fsync levels though, you can use it to make the call block until the data has been relayed to at least N other nodes.
- latch 15y agono, fsync means wait for the data file to be synced to disk. {safe:true} is what you are talking about. {j:true} is probably what yo should be using, {w:majority} is also important, and {fsync:true} is the data file option I think given that one of the parameters is called "fsync" using "fsync" should mean that.
- rfurlan 15y agoYes latch, you are correct, thank you