Skip to content

Latest commit

 

History

History
106 lines (62 loc) · 7.22 KB

cache-how-to-zone-redundancy.md

File metadata and controls

106 lines (62 loc) · 7.22 KB
title description ms.topic ms.date
Enable zone redundancy for Azure Cache for Redis
Learn how to set up zone redundancy for your Premium and Enterprise tier Azure Cache for Redis instances
conceptual
08/05/2024

Enable zone redundancy for Azure Cache for Redis

In this article, you'll learn how to configure a zone-redundant Azure Cache instance using the Azure portal.

Azure Cache for Redis Standard (Preview), Premium (Premium), and Enterprise tiers provide built-in redundancy by hosting each cache on two dedicated virtual machines (VMs). Even though these VMs are located in separate Azure fault and update domains and highly available, they're susceptible to data center-level failures. Azure Cache for Redis also supports zone redundancy in its Standard (preview), Premium (preview) and Enterprise tiers. A zone-redundant cache runs on VMs spread across multiple Availability Zones. It provides higher resilience and availability.

Prerequisites

Create a cache

To create a cache, follow these steps:

  1. Sign in to the Azure portal and select Create a resource.

  2. On the New page, select Databases and then select Azure Cache for Redis.

    :::image type="content" source="media/cache-create/new-cache-menu.png" alt-text="Select Azure Cache for Redis.":::

  3. On the Basics page, configure the settings for your new cache.

    Setting Suggested value Description
    Subscription Select your subscription. The subscription under which to create this new Azure Cache for Redis instance.
    Resource group Select a resource group, or select Create new and enter a new resource group name. Name for the resource group in which to create your cache and other resources. By putting all your app resources in one resource group, you can easily manage or delete them together.
    DNS name Enter a globally unique name. The cache name must be a string between 1 and 63 characters that contains only numbers, letters, or hyphens. The name must start and end with a number or letter, and can't contain consecutive hyphens. Your cache instance's host name will be <DNS name>.redis.cache.windows.net.
    Location Select a location. Select a region near other services that will use your cache.
    Cache type Select a Premium or Enterprise tier cache. The pricing tier determines the size, performance, and features that are available for the cache. For more information, see Azure Cache for Redis Overview.
  4. For Standard or Premium tier cache, select Advanced in the Resource menu. To enable zone resiliency with automatic zone allocation, select (Preview) Select zones automatically.

    :::image type="content" source="media/cache-how-to-zone-redundancy/cache-availability-zone.png" alt-text="Screenshot showing the Advanced tab with a red box around Availability zones.:":::

    For an Enterprise tier cache, select Advanced in the Resource menu. For Zone redundancy, select Zone redundant (recommended).

    :::image type="content" source="media/cache-how-to-zone-redundancy/cache-enterprise-create-zones.png" alt-text="Screenshot showing the Advanced tab with a red box around Zone redundancy.":::

    Automatic zone allocation increases the overall availability of your cache by automatically spreading it across multiple availability zones. Using availability zones makes the cache more resilient to outages in a data center. For more information, see Zone redundancy.

    [!IMPORTANT] Automatic Zone Allocation cannot be modified once enabled for a cache.

    [!IMPORTANT] Enabling Automatic Zone Allocation is currently NOT supported for Geo Replicated caches or caches with VNET injection.

  5. Availability zones can be selected manually for Premium tier caches. The number of availability zones must always be less than or equal to the total number of nodes for the cache.

    :::image type="content" source="media/cache-how-to-zone-redundancy/cache-premium-replica-count.png" alt-text="Screenshot showing Availability zones set to one and Replica count set to three.":::

  6. Configure your settings for clustering and/or RDB persistence.

    [!NOTE] Zone redundancy doesn't support Append-only File (AOF) persistence with multiple replicas (more than one replica). Zone redundancy doesn't work with geo-replication currently.

  7. Select Create.

    It takes a while for the cache to be created. You can monitor progress on the Azure Cache for Redis Overview page. When Status shows as Running, the cache is ready to use.

Zone Redundancy FAQ

Why can't I enable zone redundancy when creating a Premium cache?

Zone redundancy is available only in Azure regions that have Availability Zones. See Azure regions with Availability Zones for the latest list.

Why can't I select all three zones during cache create?

A Premium cache has one primary and one replica node by default. To configure zone redundancy for more than two Availability Zones, you need to add more replicas to the cache you're creating.

Can I update my existing Standard or Premium cache to use zone redundancy?

Yes, updating an existing Standard or Premium cache to use zone redundancy is supported. You can enable it by selecting Allocate Zones automatically from the Advanced settings on the Resource menu. You cannot disable zone redundancy once you have enabled it.

Important

Automatic Zone Allocation cannot be modified once enabled for a cache.

Important

Enabling Automatic Zone Allocation is currently NOT supported for Geo Replicated caches or caches with VNet injection.

How much does it cost to replicate my data across Azure Availability Zones?

When your cache uses zone redundancy configured with multiple Availability Zones, data is replicated from the primary cache node in one zone to the other node(s) in another zone(s). The data transfer charge is the network egress cost of data moving across the selected Availability Zones. For more information, see Bandwidth Pricing Details.

Next Steps

Learn more about Azure Cache for Redis features.