You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
25
47
26
48
## Create or join an active geo-replication group
27
49
@@ -43,7 +65,7 @@ Active geo-replication groups up to five instances of Enterprise Azure Cache for
43
65
44
66
## Remove from an active geo-replication group
45
67
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.
47
69
48
70
## Force-unlink if there's a region outage
49
71
@@ -69,7 +91,7 @@ You should remove the unavailable cache because the remaining caches in the repl
69
91
70
92
### Azure CLI
71
93
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).
73
95
74
96
#### Create new Enterprise instance in a new geo-replication group using Azure CLI
75
97
@@ -85,7 +107,7 @@ To configure active geo-replication properly, the ID of the cache instance being
85
107
86
108
#### Create new Enterprise instance in an existing geo-replication group using Azure CLI
87
109
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_.
@@ -99,7 +121,7 @@ Use Azure PowerShell to create a new cache and geo-replication group, or to add
99
121
100
122
#### Create new Enterprise instance in a new geo-replication group using PowerShell
101
123
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_:
@@ -111,14 +133,26 @@ To configure active geo-replication properly, the ID of the cache instance being
111
133
112
134
#### Create new Enterprise instance in an existing geo-replication group using PowerShell
113
135
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.
As before, you need to list both _Cache1_ and _Cache2_ using the `-LinkedDatabase` parameter.
121
143
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.
0 commit comments