Skip to content

Fate of Data When durability.enabled=false #533

Answered by smoyergh
victorstewart asked this question in Q&A
Discussion options

You must be logged in to vote

Cached KV pairs are never evicted from DRAM before being written to media, regardless of whether journaling is enabled or disabled. Furthermore, even with journaling disabled, the data on media is guaranteed to be consistent. That is, updates performed in a transaction are always all-or-nothing.

There are multiple benefits to enabling journaling: 1) you can configure a flush interval to bound the amount of data lost in the event of a power loss or other failure w/o the app having to explicitly call sync(), and 2) performance is often better because we have more flexibility in when and how we ingest data (into cN) that has been written to the journal.

Net is we recommend having the journal…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by victorstewart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants