|
| 1 | +--- |
| 2 | +title: Reliability in Azure Cosmos DB for MongoDB vCore |
| 3 | +description: Find out about reliability in Azure Cosmos DB for MongoDB vCore |
| 4 | +author: anaharris-ms |
| 5 | +ms.author: gahllevy |
| 6 | +ms.reviewer: sidandrews |
| 7 | +ms.service: cosmos-db |
| 8 | +ms.subservice: mongodb |
| 9 | +ms.topic: conceptual |
| 10 | +ms.date: 02/13/2024 |
| 11 | +ms.custom: references_regions, subject-reliability |
| 12 | +CustomerIntent: As a cloud architect/engineer, I need general guidance reliability in Azure Cosmos DB for MongoDB vCore |
| 13 | +--- |
| 14 | + |
| 15 | +# Reliability in Azure Cosmos DB for MongoDB vCore |
| 16 | + |
| 17 | +[!INCLUDE[MongoDB vCore](/cosmos-db/includes/appliesto-mongodb-vcore)] |
| 18 | + |
| 19 | +This article contains detailed information on regional resiliency with [availability zones](#availability-zone-support) and [cross-region disaster recovery and business continuity](#cross-region-disaster-recovery-and-business-continuity) for Azure Cosmos DB for MongoDB vCore. |
| 20 | + |
| 21 | +For an architectural overview of reliability in Azure, see [Azure reliability](/azure/architecture/framework/resiliency/overview). |
| 22 | + |
| 23 | + |
| 24 | +## Availability zone support |
| 25 | + |
| 26 | +[!INCLUDE [Availability zone description](includes/reliability-availability-zone-description-include.md)] |
| 27 | + |
| 28 | +To gain availability zone support, you must enable High availability (HA). |
| 29 | + |
| 30 | +HA avoids database downtime by maintaining standby replicas of every shard in a cluster. If a shard goes down, Azure Cosmos DB for MongoDB vCore switches incoming connections from the failed shard to its standby replica. |
| 31 | + |
| 32 | +When HA is enabled in a region that supports availability zones, HA replica shards are provisioned in a different availability zone from their primary shards. HA replicas don't receive requests from clients unless their primary shard fails. |
| 33 | + |
| 34 | +If HA is disabled, each shard has its own locally redundant storage (LRS) with three synchronous replicas maintained by Azure Storage service. If there's a single replica failure, the Azure Storage service detects the failure, and transparently re-creates the relevant data. For LRS storage durability, see [Summary of redundancy options](/storage/common/storage-redundancy#summary-of-redundancy-options). However, in the case of a region failure, you run the risk of extensive downtime and possible data loss. |
| 35 | + |
| 36 | + |
| 37 | +### Prerequisites |
| 38 | + |
| 39 | +Your Azure Cosmos DB for MongoDB vCore cluster must be created in the following regions: |
| 40 | + |
| 41 | +- Australia East |
| 42 | +- Southeast Asia |
| 43 | +- Canada Central |
| 44 | +- North Europe |
| 45 | +- UK South |
| 46 | +- West Europe |
| 47 | +- Central US |
| 48 | +- East US |
| 49 | +- East US 2 |
| 50 | +- South Central US |
| 51 | +- West US 2 |
| 52 | + |
| 53 | + |
| 54 | +### Create a resource with availability zones enabled |
| 55 | + |
| 56 | +To enable availability zones, you must enable High availability (HA) when [creating a cluster](quickstart-portal.md) or in the [**Scale** section of an existing cluster](how-to-scale-cluster.md) in the Azure portal. |
| 57 | + |
| 58 | + |
| 59 | +## Cross-region disaster recovery and business continuity |
| 60 | + |
| 61 | +[!INCLUDE [introduction to disaster recovery](includes/reliability-disaster-recovery-description-include.md)] |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | +Azure Cosmos DB for MongoDB vCore does not provide built-in automatic failover or disaster recovery. Planning for high availability is a critical step as your solution scales. |
| 66 | + |
| 67 | +Azure Cosmos DB for MongoDB vCore automatically takes backups of your data at regular intervals. The automatic backups are taken without affecting the performance or availability of the database operations. All backups are performed automatically in the background and stored separately from the source data in a storage service. These automatic backups are useful in scenarios when you accidentally delete or modify resources and later require the original versions. |
| 68 | + |
| 69 | +Automatic backups are retained in various intervals based on whether the cluster is currently active or recently deleted. |
| 70 | + |
| 71 | +| | Retention period | |
| 72 | +| --- | --- | |
| 73 | +| **Active clusters** | `35` days | |
| 74 | +| **Deleted clusters** | `7` days | |
| 75 | + |
| 76 | +## Next steps |
| 77 | +[Scale a cluster in Azure Cosmos DB for MongoDB vCore](how-to-scale-cluster.md) |
| 78 | + |
| 79 | +- Read more about [feature compatibility with MongoDB](compatibility.md). |
| 80 | +- Review options for [migrating from MongoDB to Azure Cosmos DB for MongoDB vCore](migration-options.md) |
| 81 | +- Get started by [creating an account](quickstart-portal.md). |
0 commit comments