Skip to content

Commit 3276e41

Browse files
committed
first draft of changes
1 parent 2ee5145 commit 3276e41

File tree

2 files changed

+54
-3
lines changed

2 files changed

+54
-3
lines changed

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

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Configure active geo-replication for Enterprise Azure Cache for Redis ins
33
description: Learn how to replicate your Azure Cache for Redis Enterprise instances across Azure regions.
44
ms.custom: devx-track-azurecli, ignite-2024
55
ms.topic: conceptual
6-
ms.date: 11/11/2024
6+
ms.date: 01/10/2025
77
---
88

99
# 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
169169

170170
:::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.":::
171171

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+
172198
### Flush caches using Azure CLI or PowerShell
173199

174200
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).

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

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Learn how to replicate your Azure Managed Redis instances across Az
66
ms.service: azure-managed-redis
77
ms.custom: devx-track-azurecli, ignite-2024
88
ms.topic: conceptual
9-
ms.date: 11/15/2024
9+
ms.date: 01/10/2025
1010
---
1111

1212
# Configure active geo-replication for Azure Managed Redis (preview) instances
@@ -192,13 +192,38 @@ Once each instance has been scaled to the same tier and size, all scaling locks
192192
|-----------|:--------------------:|:--------------------:|:--------------------:|
193193
| Type | Compute Optimized X20 | Compute Optimized X20 | Compute Optimized X20 |
194194

195-
196195
## Flush operation
197196

198197
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.
199198

200199
:::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.":::
201200

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+
202227
### Flush caches using Azure CLI or PowerShell
203228

204229
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

Comments
 (0)