Azure Redis now enables you to protect yourself from data center level failures through support for Availability Zones. By pinning your cache to a specific zone, you can ensure that your cache and application are contained within the same zone. You can then deploy your application to multiple zones, thus limiting the impact to your application should a data center specific failure occur. This feature is supported on the Premium Tier.
- Please visit https://docs.microsoft.com/en-us/azure/availability-zones/az-overview for general intro to Availability Zones.
- Zonal Redis Cache offering is available on the Premium Tier and allows you to pin a redis cache to a specific zone when in a region that supports Azure availability zones (see list below).
- To troubleshoot any issues encountered while creating a zonal redis cache please visit https://aka.ms/redis/errors/AvailabilityZoneMissing
The following regions are currently supported for Availability Zones:
- Central US
- East US
- East US 2
- West US 2
- France Central
- North Europe
- UK South
- West Europe
- Japan East
- Southeast Asia
Some customers may want to use a single cache instance within a region but still have the ability to fail over to a different cache instance in the event of a cache or data center failure. This can be done by combining zonal pinning as described in this article with our existing Geo-Replication feature. In spite of the name, geo-replication can be configured on two caches within the same region, which allows you to replicate data from one cache instance to another cache instance.
- Create a premium tier cache in one zone
- Create a second premium tier cache of the same size in another zone in the same region
- Follow the Geo-Replication instructions which will link the two caches in steps 1 and 2. Once linked, the primary cache instance will be read/write and the secondary instance will be readonly until the link between the cache instances is removed.
- If you need to fail over to the secondary cache instance (e.g. due to a failure in the primary cache's zone), follow the previously linked Geo-Replciation instructions for removing the link and then configure your application to use the secondary cache instead of the primary cache.