I know db-xx.log is the journal file and db.redo is the reference file?
db-xx.log stores messages which are not consumed, yet. Those messages will be deleted from db-xx.log after being consumed. db.redo stores references of messages (which are stored in db-xx.log) by message id.
- But, what are db.data and db.free?
- What are their functions?
My understanding is that broker stores messages in cache (which is volatile memory) first, and then those messages are moved (appended) to db-xx.log when checkpoint or cache size is full.
- Is that correct?
Thanks