pmem / pmem-redis

A version of Redis that uses persistent memory
BSD 3-Clause "New" or "Revised" License
113 stars 47 forks source link

Does pmem-redis support failure recovery? #10

Closed sihangliu closed 3 years ago

sihangliu commented 5 years ago

I wonder what compile flags do I need to set in order to make sure data on DCPMM can be recovered after a power failure? Could you explain more about the AEP_COW flag? How does it affect data persistence and recovery?

peifengsi commented 3 years ago

As normal Redis, it supports to recover from power failure only if the AOF always is set.

AEP_COW is used to support copy-on-write on the memory mapped space from AEP in user space, because kernel doesn't support it.