Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Data persistence

Data persistence enables recovery in the event of memory loss or other catastrophic failure. Here, you learn data persistence options, when they're available, and how to apply specific settings to individual databases.

Redis Cloud

Redis Cloud can persist data to enable recovery in the event of memory loss or other catastrophic failure. When you enable data persistence, in-memory data is copied to persistent storage attached to the underlying cloud instance.

Persistence options

Data can be persisted in one of two ways:

AOF files provide greater protection (durability) than snapshots at the cost of resources and recovery time. Although snapshot recovery is faster, the risk of data loss is higher, depending on the time between failure and the most recent snapshot.

Warning:
If you turn off data persistence, data is lost when the database goes down.

Configure data persistence

In Redis Cloud, data persistence is a database configuration setting that can be changed by editing your database settings.

The availability of the setting depends on your plan:

When enabled, you can change the Data persistence setting to one of the following values:

Options Description
None Data is not persisted to disk at all.
Append Only File (AoF) every write (Redis Cloud Pro only) Every write is recorded (synchronized to disk using fsync)
Append Only File (AoF) every 1 second Record is updated every second (synchronized to disk using fsync)
Snapshot every 1 hour A snapshot of the database is created every hour
Snapshot every 6 hours A snapshot of the database is created every 6 hours
Snapshot every 12 hours A snapshot of the database is created every 12 hours

When you save changes to data persistence settings, the updates are applied in the background. This means there is a brief delay while the new settings are applied.

When replication is enabled for a database, persistence is performed against replicas (copies) to reduce performance impact on the primary (master) database.

RATE THIS PAGE
Back to top ↑