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/cosmos-db/mongodb/vcore/cross-region-replication.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ms.subservice: mongodb-vcore
9
9
ms.custom:
10
10
- build-2024
11
11
ms.topic: concept-article
12
-
ms.date: 05/09/2024
12
+
ms.date: 05/20/2024
13
13
#Customer Intent: As a database adminstrator, I want to configure cross-region replication, so that I can have disaster recovery plans in the event of a regional outage.
14
14
---
15
15
@@ -43,15 +43,15 @@ When you create a replica by enabling cross-region replication, it doesn't inher
43
43
44
44
The replica inherits the admin account from the primary cluster. User accounts need to be managed on the primary cluster. You can connect to the primary cluster and its replica cluster using the same user accounts.
45
45
46
-
When cross-region replication is enabled, applications can use the replica cluster connection string to perform reads from the cluster replica. The primary cluster is available for read and write operations using a read-write connection string. The global read-write connection string is updated as a part of replica promotion process to point to the current read-write cluster.
46
+
When cross-region replication is enabled, applications can use the replica cluster connection string to perform reads from the cluster replica. The primary cluster is available for read and write operations using its own connection string.
47
47
48
48
## Replica cluster promotion
49
49
50
50
If a region outage occurs, you can perform disaster recovery operation by promoting your cluster replica in another region to become available for writes. During replica promotion operation, these steps are happening:
51
51
52
52
1. Writes on the replica in region B are enabled in addition to reads. The former replica becomes a new read-write cluster.
53
-
1. The global read-write string now points to the promoted cluster in region B.
54
-
1. The cluster in region A is set to read-only.
53
+
1. The promoted replica cluster accepts writes using its connection string.
54
+
1. The cluster in region A is set to read-only and keeps its connection string.
55
55
56
56
> [!IMPORTANT]
57
57
> Because replication is asynchronous, some data from cluster in region A might not be replicated to region B when cluster replica in region B is promoted. If this is the case, promotion would result in the un-replicated data not present on both clusters.
Copy file name to clipboardExpand all lines: articles/cosmos-db/mongodb/vcore/how-to-cluster-replica.md
+34-9Lines changed: 34 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ms.subservice: mongodb-vcore
9
9
ms.custom:
10
10
- build-2024
11
11
ms.topic: how-to
12
-
ms.date: 05/09/2024
12
+
ms.date: 05/20/2024
13
13
#Customer Intent: As a database adminstrator, I want to configure cross-region replication, so that I can have disaster recovery plans in the event of a regional outage.
14
14
---
15
15
@@ -31,13 +31,29 @@ Azure Cosmos DB for MongoDB vCore allows continuous data streaming to a replica
31
31
32
32
## Enable cross-region replication
33
33
34
-
To enable cross-region replication on a new cluster, follow these steps:
34
+
To enable cross-region replication on a new cluster*during cluster creation*, follow these steps:
35
35
36
36
1. Follow the steps to [create a new Azure Cosmos DB for MongoDB vCore cluster](./quickstart-portal.md#create-a-cluster).
37
37
1. On the **Basics** tab, select **Enable global distribution (preview)** flag.
38
-
1. Once cluster is created, on the cluster sidebar, under **Settings**, select **Global distribution**.
39
-
1. Select **Add replica** and select a region for cluster replica to be created in.
40
-
1. Verify your selection and select **Save** to confirm your selection.
38
+
1. On the **Global distribution (preview)** tab, select **Enable** for the **Read replica in another region (preview)**.
39
+
1. Provide a replica cluster name in the **Read replica name** field.
40
+
1. Select a region in the **Read replica region**. The replica cluster is hosted in the selected Azure region.
41
+
1. (optionally) Select desired network access settings for the cluster on the **Networking** tab.
42
+
1. On the **Review + create** tab, review cluster configuration details, and then select **Create**.
43
+
44
+
> [!NOTE]
45
+
> The replica cluster is created in the same Azure subscirption and resource group as its primary cluster.
46
+
47
+
To enable cross-region replication on a new cluster *at any time after cluster creation*, follow these steps:
48
+
49
+
1. Follow the steps to [create a new Azure Cosmos DB for MongoDB vCore cluster](./quickstart-portal.md#create-a-cluster).
50
+
1. On the **Basics** tab, select **Enable global distribution (preview)** flag.
51
+
1. Skip **Global distribution (preview)** tab. This tab is used to create a cluster replica during primary cluster provisioning.
52
+
1. Once cluster is created, on the cluster sidebar, under **Settings**, select **Global distribution (preview)**.
53
+
1. Select **Add new read replica**.
54
+
1. Provide a replica cluster name in the **Read replica name** field.
55
+
1. Select a region in the **Read replica region**. The replica cluster is hosted in the selected Azure region.
56
+
1. Verify your selection and select the **Save** button to confirm replica creation.
41
57
42
58
## Promote a replica
43
59
@@ -74,15 +90,24 @@ If you need to delete the primary and replica clusters, you would need to delete
74
90
75
91
## Use connection strings
76
92
77
-
You can connect to the cluster replica as you would to a regular read-write cluster. When global distribution is enabled on the cluster, you can use global read-write connection string for reads and writes. This global read-write connection string would always point to the current read-write cluster.
93
+
You can connect to the cluster replica as you would to a regular read-write cluster.
78
94
Follow these steps to [get the connection strings for different cases](./cross-region-replication.md#read-operations-on-cluster-replicas-and-connection-strings):
79
95
80
96
1. Select the primary cluster or its cluster replica in the portal.
81
97
1. On the cluster sidebar, under **Settings**, select **Connection strings**.
82
-
1. On the primary cluster, copy the global read-write connection string for connections to the current read-write cluster.
83
-
1. Copy the connection string for currently selected cluster to connect to that cluster as you would with a regular read-write cluster.
98
+
1. Copy the connection string for currently selected cluster to connect to that cluster.
99
+
100
+
Connection strings are preserved after [the cluster replica promotion](./cross-region-replication.md#replica-cluster-promotion). You can continue to use either string for read operations. You need to change connection string to point to the promoted replica cluster to continue writes to the database after promotion is completed.
101
+
102
+
## Cross-region replication limits and limitations
103
+
The following section describes various limits in the cross-region replication feature.
84
104
85
-
Connection strings are preserved after [the cluster replica promotion](./cross-region-replication.md#replica-cluster-promotion).
105
+
- Cross-region replication isn't supported in [the Free tier](./free-tier.md).
106
+
-[Burstable compute](./burstable-tier.md) isn't supported on replica clusters.
107
+
- Cross-region replication is supported only on clusters with one shard.
108
+
- Compute, storage, and shard count configuration is the same on the primary and replica clusters and can't be changed.
109
+
- High availability isn't supported on replica clusters.
0 commit comments