Skip to content

Latest commit

 

History

History
66 lines (47 loc) · 4.44 KB

cosmos-db-tutorial-global-distribution-portal.md

File metadata and controls

66 lines (47 loc) · 4.44 KB
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.

[!VIDEO https://www.youtube.com/embed/1D06yjTVxt8]

For more information about how global database replication works in Azure Cosmos DB, see Distribute data globally with Cosmos DB.

Add global database regions using the Azure portal

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

  1. In the Azure portal, in the left bar, click Azure Cosmos DB.

  2. In the Azure Cosmos DB page, select the database account to modify.

  3. In the account page, click Replicate data globally from the menu.

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

    Click the regions in the map to add or remove them

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.

Selecting global database regions

There are two common scenarios for configuring two or more regions:

  1. Delivering low-latency access to data to end users no matter where they are located around the globe
  2. 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.