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
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/cache-how-to-active-geo-replication.md
+27-1Lines changed: 27 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Configure active geo-replication for Enterprise Azure Cache for Redis ins
3
3
description: Learn how to replicate your Azure Cache for Redis Enterprise instances across Azure regions.
4
4
ms.custom: devx-track-azurecli, ignite-2024
5
5
ms.topic: conceptual
6
-
ms.date: 11/11/2024
6
+
ms.date: 01/10/2025
7
7
---
8
8
9
9
# Configure active geo-replication for Enterprise Azure Cache for Redis instances
@@ -169,6 +169,32 @@ Due to the potential for inadvertent data loss, you can't use the `FLUSHALL` and
169
169
170
170
:::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.":::
171
171
172
+
## Geo-replication Metric
173
+
174
+
The _Geo Replication Healthy_ metric in Azure Cache for Redis Enterprise/Azure Managed Redis helps monitor the health of geo-replicated clusters. You can use this metric to monitor the sync status among geo-replicas.
175
+
176
+
To monitor the _Geo Replication Healthy_ metric in the Azure portal:
177
+
178
+
1. Navigate to Your Redis Resource: Open the Azure portal and select your Azure Cache for Redis instance.
179
+
1. Go to Metrics: In the left-hand menu, click Metrics under the Monitoring section.
180
+
1. Add Metric: Click on + Add Metric and select the "Geo Replication Healthy" metric.
181
+
1. Set Filters: If needed, apply filters for specific geo-replicas.
182
+
1. Create Alerts (optional): Configure an alert to notify you if the "Geo Replication Healthy" metric emits an unhealthy value (0) continuously for over 60 minutes.
183
+
1. Click New Alert Rule.
184
+
1. Define the condition to trigger if the metric value is 0 for at least 60 minutes. (recommended time)
185
+
1. Add action groups for notifications (email, SMS, etc.).
186
+
1. Save the alert.
187
+
1. For more information on how to setup alerts for you Redis Enterprise/AMR cache follow this documentation - Monitor Azure Cache for Redis - Azure Cache for Redis | Microsoft Learn
188
+
189
+
> [!IMPORTANT]
190
+
> This metric may temporarily show as unhealthy due to routine operations like maintenance events or scaling, initiated either by Azure or the customer. To avoid false alarms, we strongly recommend setting up an observation window of 60 minutes where the metric continues to stay unhealthy as the appropriate time for generating an alert as it may indicate a problem that requires intervention.
191
+
192
+
## Common Client-side issues that can cause sync issues among geo-replicas
193
+
194
+
- Use of custom Hash tags – Using custom hashtags in Redis can lead to uneven distribution of data across shards, which may cause performance issues and synchronization problems in geo-replicas therefore avoid using custom hashtags unless the database needs to perform multiple key operations.
195
+
196
+
- Large Key Size - Large keys can create synchronization issues among geo-replicas. To maintain smooth performance and reliable replication, we recommend keeping key sizes under 500MB when using geo-replication. If individual key size gets close to 2GB the cache will face geo=replication health issues.
197
+
172
198
### Flush caches using Azure CLI or PowerShell
173
199
174
200
The Azure CLI and PowerShell can also be used to trigger a flush operation. For more information on using Azure CLI, see [az redisenterprise database flush](/cli/azure/redisenterprise#az-redisenterprise-database-flush). For more information on using PowerShell, see [Invoke-AzRedisEnterpriseCacheDatabaseFlush](/powershell/module/az.redisenterprisecache/invoke-azredisenterprisecachedatabaseflush).
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.
199
198
200
199
:::image type="content" source="media/managed-redis-how-to-active-geo-replication/managed-redis-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.":::
201
200
201
+
## Geo-replication Metric
202
+
203
+
The _Geo Replication Healthy_ metric in Azure Cache for Redis Enterprise/Azure Managed Redis helps monitor the health of geo-replicated clusters. You can use this metric to monitor the sync status among geo-replicas.
204
+
205
+
To monitor the _Geo Replication Healthy_ metric in the Azure portal:
206
+
207
+
1. Navigate to Your Redis Resource: Open the Azure portal and select your Azure Cache for Redis instance.
208
+
1. Go to Metrics: In the left-hand menu, click Metrics under the Monitoring section.
209
+
1. Add Metric: Click on + Add Metric and select the "Geo Replication Healthy" metric.
210
+
1. Set Filters: If needed, apply filters for specific geo-replicas.
211
+
1. Create Alerts (optional): Configure an alert to notify you if the "Geo Replication Healthy" metric emits an unhealthy value (0) continuously for over 60 minutes.
212
+
1. Click New Alert Rule.
213
+
1. Define the condition to trigger if the metric value is 0 for at least 60 minutes. (recommended time)
214
+
1. Add action groups for notifications (email, SMS, etc.).
215
+
1. Save the alert.
216
+
1. For more information on how to setup alerts for you Redis Enterprise/AMR cache follow this documentation - Monitor Azure Cache for Redis - Azure Cache for Redis | Microsoft Learn
217
+
218
+
> [!IMPORTANT]
219
+
> This metric may temporarily show as unhealthy due to routine operations like maintenance events or scaling, initiated either by Azure or the customer. To avoid false alarms, we strongly recommend setting up an observation window of 60 minutes where the metric continues to stay unhealthy as the appropriate time for generating an alert as it may indicate a problem that requires intervention.
220
+
221
+
## Common Client-side issues that can cause sync issues among geo-replicas
222
+
223
+
- Use of custom Hash tags – Using custom hashtags in Redis can lead to uneven distribution of data across shards, which may cause performance issues and synchronization problems in geo-replicas therefore avoid using custom hashtags unless the database needs to perform multiple key operations.
224
+
225
+
- Large Key Size - Large keys can create synchronization issues among geo-replicas. To maintain smooth performance and reliable replication, we recommend keeping key sizes under 500MB when using geo-replication. If individual key size gets close to 2GB the cache will face geo=replication health issues.
226
+
202
227
### Flush caches using Azure CLI or PowerShell
203
228
204
229
The Azure CLI and PowerShell can also be used to trigger a flush operation. For more information on using Azure CLI, see [az redisenterprise database flush](/cli/azure/redisenterprise#az-redisenterprise-database-flush). For more information on using PowerShell, see [Invoke-AzRedisEnterpriseCacheDatabaseFlush](/powershell/module/az.redisenterprisecache/invoke-azredisenterprisecachedatabaseflush).
0 commit comments