Skip to content

Commit f50d001

Browse files
authored
Merge pull request #231612 from flang-msft/fxl---new-collated-enterprise-features
Fxl---new collated enterprise features
2 parents f9418f0 + ae02e02 commit f50d001

File tree

5 files changed

+364
-38
lines changed

5 files changed

+364
-38
lines changed

articles/azure-cache-for-redis/cache-how-to-active-geo-replication.md

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: flang-msft
55

66
ms.service: cache
77
ms.topic: conceptual
8-
ms.date: 08/15/2022
8+
ms.date: 03/23/2023
99
ms.author: franlanglois
1010

1111
---
@@ -19,9 +19,31 @@ Active geo-replication groups up to five instances of Enterprise Azure Cache for
1919
> Data transfer between Azure regions is charged at standard [bandwidth rates](https://azure.microsoft.com/pricing/details/bandwidth/).
2020
>
2121
22-
> [!IMPORTANT]
23-
> The FLUSHALL and FLUSHDB commands are blocked when using active geo-replication to prevent accidental data loss across replicated cache instances.
24-
>
22+
## Scope of availability
23+
24+
|Tier | Basic, Standard | Premium |Enterprise, Enterprise Flash |
25+
|--------- |:------------------:|:----------:|:---------:|
26+
|Available | No | No | Yes |
27+
28+
29+
|Tier | Available|
30+
|:---|:---:|
31+
|Basic, Standard | No |
32+
|Premium | No |
33+
|Enterprise, Enterprise Flash| Yes |
34+
35+
36+
The Premium tier of Azure Cache for Redis offers a version of geo-replication called [_passive geo-replication_](cache-how-to-geo-replication.md). Passive geo-replication provides an active-passive configuration.
37+
38+
## Active geo-replication prerequisites
39+
40+
There are a few restrictions when using active geo replication:
41+
- Only the [RediSearch](cache-redis-modules.md#redisearch) and [RedisJSON](cache-redis-modules.md#redisjson) modules are supported
42+
- On the _Enterprise Flash_ tier, only the _No Eviction_ eviction policy can be used. All eviction policies are supported on the _Enterprise_ tier.
43+
- Data persistence isn't supported because active geo-replication provides a superior experience.
44+
- You can't add an existing (that is, running) cache to a geo-replication group. You can only add a cache to a geo-replication group when you create the cache.
45+
- All caches within a geo-replication group must have the same configuration. For example, all caches must have the same SKU, capacity, eviction policy, clustering policy, modules, and TLS setting.
46+
- You can't use the `FLUSHALL` and `FLUSHDB` Redis commands when using active geo-replication. Prohibiting the commands prevents unintended deletion of data. Use the [flush control plane operation](#flush-operation) instead.
2547

2648
## Create or join an active geo-replication group
2749

@@ -43,7 +65,7 @@ Active geo-replication groups up to five instances of Enterprise Azure Cache for
4365

4466
## Remove from an active geo-replication group
4567

46-
To remove a cache instance from an active geo-replication group, you just delete the instance. The remaining instances will reconfigure themselves automatically.
68+
To remove a cache instance from an active geo-replication group, you just delete the instance. The remaining instances then reconfigure themselves automatically.
4769

4870
## Force-unlink if there's a region outage
4971

@@ -69,7 +91,7 @@ You should remove the unavailable cache because the remaining caches in the repl
6991

7092
### Azure CLI
7193

72-
Use the Azure CLI for creating a new cache and geo-replication group, or to add a new cache to an existing geo-replication group. For more information, see [az redisenterprise create](/cli/azure/redisenterprise#az-redisenterprise-create).
94+
Use the Azure CLI to create a new cache and geo-replication group, or to add a new cache to an existing geo-replication group. For more information, see [az redisenterprise create](/cli/azure/redisenterprise#az-redisenterprise-create).
7395

7496
#### Create new Enterprise instance in a new geo-replication group using Azure CLI
7597

@@ -85,7 +107,7 @@ To configure active geo-replication properly, the ID of the cache instance being
85107

86108
#### Create new Enterprise instance in an existing geo-replication group using Azure CLI
87109

88-
This example creates a new Cache for Redis Enterprise E10 instance called _Cache2_ in the West US region. Then, the cache is added to the `replicationGroup` active geo-replication group created above. This way, it's linked in an active-active configuration with Cache1.
110+
This example creates a new Enterprise E10 cache instance called _Cache2_ in the West US region. Then, the script adds the cache to the `replicationGroup` active geo-replication group create in a previous procedure. This way, it's linked in an active-active configuration with _Cache1_.
89111

90112
```azurecli-interactive
91113
az redisenterprise create --location "West US" --cluster-name "Cache2" --sku "Enterprise_E10" --resource-group "myResourceGroup" --group-nickname "replicationGroup" --linked-databases id="/subscriptions/34b6ecbd-ab5c-4768-b0b8-bf587aba80f6/resourceGroups/myResourceGroup/providers/Microsoft.Cache/redisEnterprise/Cache1/databases/default" --linked-databases id="/subscriptions/34b6ecbd-ab5c-4768-b0b8-bf587aba80f6/resourceGroups/myResourceGroup/providers/Microsoft.Cache/redisEnterprise/Cache2/databases/default"
@@ -99,7 +121,7 @@ Use Azure PowerShell to create a new cache and geo-replication group, or to add
99121

100122
#### Create new Enterprise instance in a new geo-replication group using PowerShell
101123

102-
This example creates a new Azure Cache for Redis Enterprise E10 cache instance called "Cache1" in the East US region. Then, the cache is added to a new active geo-replication group called _replicationGroup_:
124+
This example creates a new Azure Cache for Redis Enterprise E10 cache instance called _Cache1_ in the East US region. Then, the cache is added to a new active geo-replication group called _replicationGroup_:
103125

104126
```powershell-interactive
105127
New-AzRedisEnterpriseCache -Name "Cache1" -ResourceGroupName "myResourceGroup" -Location "East US" -Sku "Enterprise_E10" -GroupNickname "replicationGroup" -LinkedDatabase '{id:"/subscriptions/34b6ecbd-ab5c-4768-b0b8-bf587aba80f6/resourceGroups/myResourceGroup/providers/Microsoft.Cache/redisEnterprise/Cache1/databases/default"}'
@@ -111,14 +133,26 @@ To configure active geo-replication properly, the ID of the cache instance being
111133

112134
#### Create new Enterprise instance in an existing geo-replication group using PowerShell
113135

114-
This example creates a new Azure Cache for Redis E10 instance called _Cache2_ in the West US region. Then, the cache is added to the "replicationGroup" active geo-replication group created above. This way, it's linked in an active-active configuration with _Cache1_.
136+
This example creates a new Enterprise E10 cache instance called _Cache2_ in the West US region. Then, the script adds the cache to the "replicationGroup" active geo-replication group created in the previous procedure. the links the two caches, _Cache1_ and _Cache2_, in an active-active configuration.
115137

116138
```powershell-interactive
117139
New-AzRedisEnterpriseCache -Name "Cache2" -ResourceGroupName "myResourceGroup" -Location "West US" -Sku "Enterprise_E10" -GroupNickname "replicationGroup" -LinkedDatabase '{id:"/subscriptions/34b6ecbd-ab5c-4768-b0b8-bf587aba80f6/resourceGroups/myResourceGroup/providers/Microsoft.Cache/redisEnterprise/Cache1/databases/default"}', '{id:"/subscriptions/34b6ecbd-ab5c-4768-b0b8-bf587aba80f6/resourceGroups/myResourceGroup/providers/Microsoft.Cache/redisEnterprise/Cache2/databases/default"}'
118140
```
119141

120142
As before, you need to list both _Cache1_ and _Cache2_ using the `-LinkedDatabase` parameter.
121143

144+
## Flush operation
145+
146+
Due to the potential for inadvertent data loss, you can't use the `FLUSHALL` and `FLUSHDB` Redis commands with any cache instance residing in a geo-replication group. Instead, use the **Flush Cache(s)** button located at the top of the **Active geo-replication** working pane.
147+
148+
:::image type="content" source="media/cache-how-to-active-geo-replication/cache-active-flush.png" alt-text="Screenshot showing Active geo-replication selected in the Resource menu and the Flush cache feature has a red box around it.":::
149+
150+
> [!IMPORTANT]
151+
> Be careful when using the **Flush Caches** feature. Selecting the button removes all data from the current cache and from ALL linked caches in the geo-replication group.
152+
>
153+
154+
Manage access to the feature using [Azure role-based access control](../role-based-access-control/overview.md). Only authorized users should be given access to flush all caches.
155+
122156
## Next steps
123157

124158
Learn more about Azure Cache for Redis features.

0 commit comments

Comments
 (0)