Skip to content

Commit 2ec4354

Browse files
Merge pull request #275906 from niklarin/geo-dr5
Cross-region replication: Post Build fixes
2 parents 31600b6 + 175f2e4 commit 2ec4354

File tree

2 files changed

+38
-13
lines changed

2 files changed

+38
-13
lines changed

articles/cosmos-db/mongodb/vcore/cross-region-replication.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.subservice: mongodb-vcore
99
ms.custom:
1010
- build-2024
1111
ms.topic: concept-article
12-
ms.date: 05/09/2024
12+
ms.date: 05/20/2024
1313
#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.
1414
---
1515

@@ -43,15 +43,15 @@ When you create a replica by enabling cross-region replication, it doesn't inher
4343

4444
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.
4545

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.
4747

4848
## Replica cluster promotion
4949

5050
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:
5151

5252
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.
5555

5656
> [!IMPORTANT]
5757
> 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.

articles/cosmos-db/mongodb/vcore/how-to-cluster-replica.md

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.subservice: mongodb-vcore
99
ms.custom:
1010
- build-2024
1111
ms.topic: how-to
12-
ms.date: 05/09/2024
12+
ms.date: 05/20/2024
1313
#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.
1414
---
1515

@@ -31,13 +31,29 @@ Azure Cosmos DB for MongoDB vCore allows continuous data streaming to a replica
3131

3232
## Enable cross-region replication
3333

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:
3535

3636
1. Follow the steps to [create a new Azure Cosmos DB for MongoDB vCore cluster](./quickstart-portal.md#create-a-cluster).
3737
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.
4157

4258
## Promote a replica
4359

@@ -74,15 +90,24 @@ If you need to delete the primary and replica clusters, you would need to delete
7490

7591
## Use connection strings
7692

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.
7894
Follow these steps to [get the connection strings for different cases](./cross-region-replication.md#read-operations-on-cluster-replicas-and-connection-strings):
7995

8096
1. Select the primary cluster or its cluster replica in the portal.
8197
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.
84104

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.
110+
- Replica of a replica cluster isn't supported.
86111

87112
## Related content
88113

0 commit comments

Comments
 (0)