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-geo-replication.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,17 @@
2
2
title: Configure geo-replication for Premium Azure Cache for Redis instances
3
3
description: Learn how to replicate your Azure Cache for Redis Premium instances across Azure regions
4
4
author: flang-msft
5
-
6
5
ms.service: cache
7
6
ms.topic: conceptual
8
7
ms.date: 02/08/2021
9
8
ms.author: franlanglois
10
9
---
10
+
11
11
# Configure geo-replication for Premium Azure Cache for Redis instances
12
12
13
13
In this article, you'll learn how to configure a geo-replicated Azure Cache using the Azure portal.
14
14
15
-
Geo-replication links together two Premium Azure Cache for Redis instances and creates a data replication relationship. These cache instances are usually located in different Azure regions, though they aren't required to. One instance acts as the primary, and the other as the secondary. The primary handles read and write requests and propagates changes to the secondary. This process continues until the link between the two instances is removed.
15
+
Geo-replication links together two Premium Azure Cache for Redis instances and creates a data replication relationship. These cache instances are typically located in different Azure regions, though that isn't required. One instance acts as the primary, and the other as the secondary. The primary handles read and write requests and propagate changes to the secondary. This process continues until the link between the two instances is removed.
16
16
17
17
> [!NOTE]
18
18
> Geo-replication is designed as a disaster-recovery solution.
@@ -42,7 +42,7 @@ Some features aren't supported with geo-replication:
42
42
43
43
After geo-replication is configured, the following restrictions apply to your linked cache pair:
44
44
45
-
- The secondary linked cache is read-only; you can read from it, but you can't write any data to it. If you choose to read from the Geo-Secondary instance, it is important to note that whenever a full data sync is happening between the Geo-Primary and the Geo-Secondary (happens when either Geo-Primary or Geo-Secondary is updated and on some reboot scenarios as well), the Geo-Secondary instance will throw errors (stating that a full data sync is in progress) on any Redis operation against it until the full data sync between Geo-Primary and Geo-Secondary is complete. Applications reading from Geo-Secondary should be built to fall back to the Geo-Primary whenever the Geo-Secondary is throwing such errors.
45
+
- The secondary linked cache is read-only; you can read from it, but you can't write any data to it. If you choose to read from the Geo-Secondary instance when a full data sync is happening between the Geo-Primary and the Geo-Secondary, the Geo-Secondary instance throws errors on any Redis operation against it until the full data sync is complete. The errors state that a full data sync is in progress. Also, the errors are thrown when either Geo-Primary or Geo-Secondary is updated and on some reboot scenarios. Applications reading from Geo-Secondary should be built to fall back to the Geo-Primary whenever the Geo-Secondary is throwing such errors.
46
46
- Any data that was in the secondary linked cache before the link was added is removed. If the geo-replication is later removed however, the replicated data remains in the secondary linked cache.
47
47
- You can't [scale](cache-how-to-scale.md) either cache while the caches are linked.
48
48
- You can't [change the number of shards](cache-how-to-premium-clustering.md) if the cache has clustering enabled.
@@ -55,7 +55,7 @@ After geo-replication is configured, the following restrictions apply to your li
55
55
56
56
## Add a geo-replication link
57
57
58
-
1. To link two caches together for geo-replication, fist click**Geo-replication** from the Resource menu of the cache that you intend to be the primary linked cache. Next, click**Add cache replication link** from **Geo-replication** on the left.
58
+
1. To link two caches together for geo-replication, fist select**Geo-replication** from the Resource menu of the cache that you intend to be the primary linked cache. Next, select**Add cache replication link** from **Geo-replication** on the left.
@@ -126,9 +126,9 @@ No, geo-replication is only available for Premium tier caches.
126
126
127
127
### Is my cache available for use during the linking or unlinking process?
128
128
129
-
-When linking, the primary linked cache remains available while the linking process completes.
130
-
-When linking, the secondary linked cache isn't available until the linking process completes.
131
-
-When unlinking, both caches remain available while the unlinking process completes.
129
+
-The primary linked cache remains available until the linking process completes.
130
+
-The secondary linked cache isn't available until the linking process completes.
131
+
-Both caches remain available until the unlinking process completes.
132
132
133
133
### Can I link more than two caches together?
134
134
@@ -153,7 +153,7 @@ Yes, geo-replication of caches in VNets is supported with caveats:
153
153
- Geo-replication between caches in the same VNet is supported.
154
154
- Geo-replication between caches in different VNets is also supported.
155
155
- If the VNets are in the same region, you can connect them using [VNet peering](../virtual-network/virtual-network-peering-overview.md) or a [VPN Gateway VNet-to-VNet connection](../vpn-gateway/vpn-gateway-howto-vnet-vnet-resource-manager-portal.md).
156
-
- If the VNets are in different regions, geo-replication using VNet peering is supported, but a client VM in VNet 1 (region 1) is not able to access the cache in VNet 2 (region 2) using it's DNS name because of a constraint with Basic internal load balancers. For more information about VNet peering constraints, see [Virtual Network - Peering - Requirements and constraints](../virtual-network/virtual-network-manage-peering.md#requirements-and-constraints). We recommend to use a VPN Gateway VNet-to-VNet connection.
156
+
- If the VNets are in different regions, geo-replication using VNet peering is supported. A client VM in VNet 1 (region 1) isn't able to access the cache in VNet 2 (region 2) using its DNS name because of a constraint with Basic internal load balancers. For more information about VNet peering constraints, see [Virtual Network - Peering - Requirements and constraints](../virtual-network/virtual-network-manage-peering.md#requirements-and-constraints). We recommend using a VPN Gateway VNet-to-VNet connection.
157
157
158
158
Using [this Azure template](https://azure.microsoft.com/resources/templates/redis-vnet-geo-replication/), you can quickly deploy two geo-replicated caches into a VNet connected with a VPN Gateway VNet-to-VNet connection.
159
159
@@ -163,7 +163,7 @@ Replication is continuous and asynchronous. It doesn't happen on a specific sche
163
163
164
164
### How long does geo-replication replication take?
165
165
166
-
Replication is incremental, asynchronous, and continuous and the time taken isn't much different from the latency across regions. Under certain circumstances, the secondary cache can be required to do a full sync of the data from the primary. The replication time in this case is depends on a number of factors like: load on the primary cache, available network bandwidth, and inter-region latency. We have found replication time for a full 53-GB geo-replicated pair can be anywhere between 5 to 10 minutes.
166
+
Replication is incremental, asynchronous, and continuous and the time taken isn't much different from the latency across regions. Under certain circumstances, the secondary cache can be required to do a full sync of the data from the primary. The replication time in this case depends on many factors like: load on the primary cache, available network bandwidth, and inter-region latency. We have found replication time for a full 53-GB geo-replicated pair can be anywhere between 5 to 10 minutes.
167
167
168
168
### Is the replication recovery point guaranteed?
169
169
@@ -177,7 +177,7 @@ Yes, geo-replication can be managed using the Azure portal, PowerShell, or Azure
177
177
178
178
### How much does it cost to replicate my data across Azure regions?
179
179
180
-
When using geo-replication, data from the primary linked cache is replicated to the secondary linked cache. There's no charge for the data transfer if the two linked caches are in the same region. If the two linked caches are in different regions, the data transfer charge is the network egress cost of data moving across either region. For more information, see [Bandwidth Pricing Details](https://azure.microsoft.com/pricing/details/bandwidth/).
180
+
When you use geo-replication, data from the primary linked cache is replicated to the secondary linked cache. There's no charge for the data transfer if the two linked caches are in the same region. If the two linked caches are in different regions, the data transfer charge is the network egress cost of data moving across either region. For more information, see [Bandwidth Pricing Details](https://azure.microsoft.com/pricing/details/bandwidth/).
181
181
182
182
### Why did the operation fail when I tried to delete my linked cache?
183
183
@@ -189,9 +189,9 @@ In general, it's recommended for your cache to exist in the same Azure region as
189
189
190
190
### How does failing over to the secondary linked cache work?
191
191
192
-
Automatic failover across Azure regions isn't supported for geo-replicated caches. In a disaster-recovery scenario, customers should bring up the entire application stack in a coordinated manner in their backup region. Letting individual application components decide when to switch to their backups on their own can negatively impact performance.
192
+
Automatic failover across Azure regions isn't supported for geo-replicated caches. In a disaster-recovery scenario, customers should bring up the entire application stack in a coordinated manner in their backup region. Letting individual application components decide when to switch to their backups on their own can negatively affect performance.
193
193
194
-
One of the key benefits of Redis is that it's a very low-latency store. If the customer's main application is in a different region than its cache, the added round-trip time would have a noticeable impact on performance. For this reason, we avoid failing over automatically because of transient availability issues.
194
+
One of the key benefits of Redis is that it's a very low-latency store. If the customer's main application is in a different region than its cache, the added round-trip time would have a noticeable effect on performance. For this reason, we avoid failing over automatically because of transient availability issues.
195
195
196
196
To start a customer-initiated failover, first unlink the caches. Then, change your Redis client to use the connection endpoint of the (formerly linked) secondary cache. When the two caches are unlinked, the secondary cache becomes a regular read-write cache again and accepts requests directly from Redis clients.
0 commit comments