Skip to content

Commit 7ee8ccb

Browse files
authored
Merge pull request #299749 from v-thepet/redis17
Azure for Redis Cache Freshness #17
2 parents 08c4a2c + 72d9fd2 commit 7ee8ccb

File tree

2 files changed

+30
-41
lines changed

2 files changed

+30
-41
lines changed
Lines changed: 30 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,57 @@
11
---
2-
title: Add replicas to Azure Cache for Redis
3-
description: Learn how to add more replicas to your Premium tier Azure Cache for Redis instances
2+
title: Add replicas to a Premium cache
3+
description: Learn how to create Premium tier Azure Cache for Redis instances with added replicas.
44

55

66

7-
ms.topic: conceptual
8-
ms.date: 08/11/2020
7+
ms.topic: how-to
8+
ms.date: 05/14/2025
99
appliesto:
1010
- ✅ Azure Cache for Redis
1111
---
1212

13-
# Add replicas to Azure Cache for Redis
13+
# Add replicas to Premium tier Azure Cache for Redis
1414

15-
In this article, you'll learn how to set up an Azure Cache for Redis instance with additional replicas using the Azure portal.
15+
Azure Cache for Redis Standard and Premium tiers offer redundancy by hosting each cache on two dedicated virtual machines (VMs) configured as primary and replica. If the primary VM becomes unavailable, the replica automatically takes over as the new primary.
1616

17-
Azure Cache for Redis Standard and Premium tiers offer redundancy by hosting each cache on two dedicated virtual machines (VMs). These VMs are configured as primary and replica. When the primary VM becomes unavailable, the replica detects that and takes over as the new primary automatically. You can now increase the number of replicas in a Premium cache up to three, giving you a total of four VMs backing a cache. Having multiple replicas results in higher resilience than what a single replica can provide.
17+
When you create a Premium cache, you can increase the number of replicas up to three, giving a total of four VMs backing a cache. Multiple replicas provide higher resilience than a single replica.
1818

19-
## Prerequisites
20-
21-
* Azure subscription - [create one for free](https://azure.microsoft.com/free/)
22-
23-
## Create a cache
19+
This article describes how to create an Azure Cache for Redis Premium cache with added replicas by using the Azure portal.
2420

25-
To create a cache, follow these steps:
21+
## Prerequisites
2622

27-
1. Sign in to the [Azure portal](https://portal.azure.com) and select **Create a resource**.
28-
29-
1. On the **New** page, select **Databases** and then select **Azure Cache for Redis**.
23+
You need an Azure subscription. If you don't have one, [create a free account](https://azure.microsoft.com/free/).
3024

31-
:::image type="content" source="media/cache-create/new-cache-menu.png" alt-text="Select Azure Cache for Redis.":::
25+
## Limitations
3226

33-
1. On the **Basics** page, configure the settings for your new cache.
27+
Creating more than one replica for a cache has the following limitations:
3428

35-
| Setting | Suggested value | Description |
36-
| ------------ | ------- | -------------------------------------------------- |
37-
| **Subscription** | Select your subscription. | The subscription under which to create this new Azure Cache for Redis instance. |
38-
| **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. |
39-
| **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*. |
40-
| **Location** | Select a location. | Select a [region](https://azure.microsoft.com/regions/) near other services that will use your cache. |
41-
| **Cache type** | Select a [Premium tier](https://azure.microsoft.com/pricing/details/cache/) 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](cache-overview.md). |
29+
- Only Premium-tier Azure Cache for Redis supports adding more than one replica.
30+
- You can't change the number of replicas after you create the cache.
31+
- You can't use geo-replication with caches that have more than one replica.
32+
- You can't use Append-only File (AOF) data persistence with caches that have more than one replica.
4233

43-
1. On the **Advanced** page, choose **Replica count**.
34+
## Create a Premium cache with added replicas
4435

45-
:::image type="content" source="media/cache-how-to-multi-replicas/create-multi-replicas.png" alt-text="Replica count.":::
36+
1. Create a cache by following the instructions at [Quickstart: Create an Azure Redis cache](quickstart-create-redis.md). On the **Basics** tab, select [Premium](https://azure.microsoft.com/pricing/details/cache/) for **Cache SKU**, and select a **Size** from **P0** to **P6**.
4637

47-
1. Configure your settings for clustering or relational database persistence.
38+
1. On the **Advanced** tab, for **Replica count**, increase the number of replicas to **2** or **3** replicas.
4839

49-
> [!NOTE]
50-
> Currently, you can't use Append-only File (AOF) persistence or geo-replication with multiple replicas (more than one replica).
51-
>
40+
1. Configure clustering, data persistence, and other settings as desired.
5241

53-
1. Leave other options in their default settings.
42+
> [!NOTE]
43+
> You can't use Append-only File (AOF) data persistence if you create more than one replica.
5444
55-
1. Select **Create**.
45+
:::image type="content" source="media/cache-how-to-multi-replicas/create-multi-replicas.png" alt-text="Replica count.":::
5646

57-
It takes a while for the cache to create. You can monitor progress on the Azure Cache for Redis **Overview** page. When **Status** shows as **Running**, the cache is ready to use.
47+
1. Select **Review + Create**, and when validation passes, select **Create**.
5848

59-
> [!NOTE]
60-
> The number of replicas in a cache can't be changed after it's created.
61-
>
49+
It takes a while for the cache to create. You can monitor progress on the Azure Cache for Redis **Overview** page. When **Status** shows as **Running**, the cache is ready to use.
6250

63-
## Next Steps
51+
> [!NOTE]
52+
> You can't change the number of replicas in a cache after the cache is created.
6453
65-
Learn more about Azure Cache for Redis features.
54+
## Related content
6655

67-
> [!div class="nextstepaction"]
68-
> [Azure Cache for Redis Premium service tiers](cache-overview.md#service-tiers)
56+
- [Azure Cache for Redis Premium service tiers](cache-overview.md#service-tiers)
57+
- [Azure Cache for Redis pricing](https://azure.microsoft.com/pricing/details/cache/)
46.6 KB
Loading

0 commit comments

Comments
 (0)