High availability and replication
Database replication helps ensure high availability.
When replication is enabled, your dataset is duplicated to create a replica that is synchronized with the primary dataset.
Replication allows for automatic failover and greater fault tolerance. It can prevent data loss in the event of a hardware or zone failure.
Options and plan support
Redis Enterprise Cloud supports three levels of replication:
-
No replication means that you will have a single copy of your database.
-
Single-zone replication means that your database will have a primary and a replica located in the same cloud zone. If anything happens to the primary, the replica takes over and becomes the new primary.
-
Multi-zone replication means that the primary and its replicas are stored in different zones. This means that your database can remain online even if an entire zone becomes unavailable.
Your replication options depend on your subscription plan:
- Free plans do not support replication.
- Fixed plans let you choose between no replication, single-zone replication, or multi-zone replication when creating a subscription.
- Flexible and Annual plans allow multi-zone or single-zone subscriptions by default. You can also disable replication.
Performance impact
Replication can affect performance as traffic increases to synchronize all copies.
Database storage costs also increase:
-
For Fixed plans, single-zone and multi-zone replication effectively doubles storage costs
-
For Flexible and Annual plans, replication requires additional shards and can affect subscription costs
Zone setting maintenance
Zone settings can only be defined when a subscription is created. You cannot change these settings once the subscription becomes active.
This means you can’t convert a multi-zone subscription to a single zone (or vice-versa).
To use different zone settings, create a new subscription with the preferred settings and then migrate data from the original subscription.
More info
To learn more about high availability and replication, see: