outbackcdx icon indicating copy to clipboard operation
outbackcdx copied to clipboard

Option to enable fsync on writes

Open ato opened this issue 7 years ago • 0 comments

By default RocksDB writes batches asynchronously. This means in a power loss scenario, it's possible for recently committed writes to be lost. This may or may not be acceptable depending on how you use OutbackCDX. Also depending on your hardware (e.g. battery-backed write caches) fsync can be either quite slow or quite fast so we probably want to default to sync for safety but make it configurable.

ato avatar Oct 31 '18 01:10 ato