Skip to content

Commit 648b7fc

Browse files
committedAug 28, 2021
new resource mover doc and updated geo-replication images
1 parent b251861 commit 648b7fc

18 files changed

+114
-0
lines changed
 

‎articles/azure-cache-for-redis/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
href: cache-administration.md#schedule-updates
143143
- name: Configure redis-cli.exe access
144144
href: cache-how-to-redis-cli-tool.md
145+
- name: Move between regions
146+
href: cache-moving-resources.md
145147
- name: Publishing Azure Cache for Redis events
146148
href: cache-event-grid.md
147149
- name: Remove TLS 1.0 and 1.1
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
---
2+
title: Move Azure Cache for Redis instances to different regions
3+
description:
4+
author: curib
5+
ms.author: cauribeg
6+
ms.service: cache
7+
ms.topic: how-to
8+
ms.custom: subject-moving-resources
9+
ms.date: 8/27/2021
10+
#Customer intent: As an Azure developer, I want to move my Azure Cache for Redis resource to another Azure region.
11+
---
12+
13+
# Move Azure Cache for Redis instances to different regions
14+
15+
In this article, you will learn how to move Azure Cache for Redis resources to a different Azure region. You might move your resources to another region for a number of reasons. For example, to take advantage of a new Azure region, to deploy features or services available in specific regions only, to meet internal policy and governance requirements, or in response to capacity planning requirements.
16+
17+
## Prerequisites
18+
19+
To configure geo-replication between two caches, the following prerequisites must be met:
20+
21+
- Both caches are [Premium tier](cache-overview.md#service-tiers) caches.
22+
- Both caches are in the same Azure subscription.
23+
- The secondary linked cache is either the same cache size or a larger cache size than the primary linked cache.
24+
- Both caches are created and in a running state.
25+
26+
27+
## Prepare
28+
29+
To move your cache instance to another region, you'll need to [create a second premium cache instance](quickstart-create-redis.md) in the desired region. Once both caches are in a running state, you can set up geo-replication between the two cache instances.
30+
31+
> [!NOTE]
32+
> Data transfer between Azure regions will be charged at standard [bandwidth rates](https://azure.microsoft.com/pricing/details/bandwidth/).
33+
34+
Some features aren't supported with geo-replication:
35+
36+
- Zone Redundancy isn't supported with geo-replication.
37+
- Persistence isn't supported with geo-replication.
38+
- Clustering is supported if both caches have clustering enabled and have the same number of shards.
39+
- Caches in the same VNET are supported.
40+
- Caches in different VNETs are supported with caveats. See [Can I use geo-replication with my caches in a VNET?](#can-i-use-geo-replication-with-my-caches-in-a-vnet) for more information.
41+
42+
After geo-replication is configured, the following restrictions apply to your linked cache pair:
43+
44+
- 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+
- 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.
46+
- You can't [scale](cache-how-to-scale.md) either cache while the caches are linked.
47+
- You can't [change the number of shards](cache-how-to-premium-clustering.md) if the cache has clustering enabled.
48+
- You can't enable persistence on either cache.
49+
- You can [Export](cache-how-to-import-export-data.md#export) from either cache.
50+
- You can't [Import](cache-how-to-import-export-data.md#import) into the secondary linked cache.
51+
- You can't delete either linked cache, or the resource group that contains them, until you unlink the caches. For more information, see [Why did the operation fail when I tried to delete my linked cache?](#why-did-the-operation-fail-when-i-tried-to-delete-my-linked-cache)
52+
- If the caches are in different regions, network egress costs apply to the data moved across regions. For more information, see [How much does it cost to replicate my data across Azure regions?](#how-much-does-it-cost-to-replicate-my-data-across-azure-regions)
53+
- Automatic failover doesn't occur between the primary and secondary linked cache. For more information and information on how to failover a client application, see [How does failing over to the secondary linked cache work?](#how-does-failing-over-to-the-secondary-linked-cache-work)
54+
55+
## Move
56+
57+
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+
59+
![Add link](./media/cache-how-to-geo-replication/cache-geo-location-menu.png)
60+
61+
1. Select the name of your intended secondary cache from the **Compatible caches** list. If your secondary cache isn't displayed in the list, verify that the [Geo-replication prerequisites](#geo-replication-prerequisites) for the secondary cache are met. To filter the caches by region, select the region in the map to display only those caches in the **Compatible caches** list.
62+
63+
![Geo-replication compatible caches](./media/cache-how-to-geo-replication/cache-geo-location-select-link.png)
64+
65+
You can also start the linking process or view details about the secondary cache by using the context menu.
66+
67+
![Geo-replication context menu](./media/cache-how-to-geo-replication/cache-geo-location-select-link-context-menu.png)
68+
69+
1. Select **Link** to link the two caches together and begin the replication process.
70+
71+
![Link caches](./media/cache-how-to-geo-replication/cache-geo-location-confirm-link.png)
72+
73+
74+
## Verify
75+
76+
1. You can view the progress of the replication process using **Geo-replication** on the left.
77+
78+
![Linking status](./media/cache-how-to-geo-replication/cache-geo-location-linking.png)
79+
80+
You can also view the linking status on the left, using **Overview**, for both the primary and secondary caches.
81+
82+
![Screenshot that highlights how to view the linking status for the primary and secondary caches.](./media/cache-how-to-geo-replication/cache-geo-location-link-status.png)
83+
84+
Once the replication process is complete, the **Link status** changes to **Succeeded**.
85+
86+
![Cache status](./media/cache-how-to-geo-replication/cache-geo-location-link-successful.png)
87+
88+
The primary linked cache remains available for use during the linking process. The secondary linked cache isn't available until the linking process completes.
89+
90+
## Clean up source resources
91+
92+
Once your new cache in the targeted region is populated with all necessary data, you can remove the link between the two caches and delete the original instance.
93+
94+
1. To remove the link between two caches and stop geo-replication, click **Unlink caches** from the **Geo-replication** on the left .
95+
96+
![Unlink caches](./media/cache-how-to-geo-replication/cache-geo-location-unlink.png)
97+
98+
When the unlinking process completes, the secondary cache is available for both reads and writes.
99+
100+
>[!NOTE]
101+
>When the geo-replication link is removed, the replicated data from the primary linked cache remains in the secondary cache.
102+
>
103+
>
104+
105+
1. Delete the original instance.
106+
107+
## Next steps
108+
* To learn more about geo-replication, see our [geo-replication FAQ](cache-how-to-geo-replication#geo-replication-faq)
109+
* To learn more about our offerings, see [Azure Cache for Redis service tiers](cache-overview.md#service-tiers)
110+
111+
112+
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.