title | description | services | author | ms.service | ms.topic | ms.date | ms.author | ms.custom |
---|---|---|---|---|---|---|---|---|
Azure Cosmos DB global distribution |
Learn how to replicate data globally with Azure Cosmos DB in the Azure portal |
cosmos-db |
SnehaGunda |
cosmos-db |
include |
03/26/2018 |
sngun |
include file |
You can learn about Azure Cosmos DB global distribution in the following video, where Azure Cosmos DB Program Manager Andrew Liu walks through global distribution functionality.
For more information about how global database replication works in Azure Cosmos DB, see Distribute data globally with Cosmos DB.
Azure Cosmos DB is available in all Azure regions world-wide. After selecting the default consistency level for your database account, you can associate one or more regions (depending on your choice of default consistency level and global distribution needs).
-
In the Azure portal, in the left bar, click Azure Cosmos DB.
-
In the Azure Cosmos DB page, select the database account to modify.
-
In the account page, click Replicate data globally from the menu.
-
In the Replicate data globally page, select the regions to add or remove by clicking regions in the map, and then click Save. There is a cost to adding regions, see the pricing page or the Distribute data globally with Azure Cosmos DB article for more information.
Once you add a second region, the Manual Failover option is enabled on the Replicate data globally page in the portal. You can use this option to test the failover process or change the primary write region. Once you add a third region, the Failover Priorities option is enabled on the same page so that you can change the failover order for reads.
There are two common scenarios for configuring two or more regions:
- Delivering low-latency access to data to end users no matter where they are located around the globe
- Adding regional resiliency for business continuity and disaster recovery (BCDR)
For delivering low-latency to end users, it is recommended that you deploy both the application and Azure Cosmos DB in the regions that correspond to where the application's users are located.
For BCDR, it is recommended to add regions based on the region pairs described in the Business continuity and disaster recovery (BCDR): Azure Paired Regions article.