Vincent Chalmel
Vincent Chalmel

Reputation: 652

How does Azure CosmosDB manage new Regions?

I added a new region to cosmosdb and now when launching heavy operations using stored procedures the first one is maxed out / rate limited but the new one is totally idle according to the metrics screen

Is the dispatch of operations between regions when the stored procedure runs silent or is all my data in one region while the new one remained empty/unused ?

If so, how could I reshuffle the partitions among the regions ?

Upvotes: 0

Views: 210

Answers (1)

silent
silent

Reputation: 16148

Cosmos DB does replicate all data into all your regions, not just single partitions etc. So any request will end up in one region only and will only be served from one region. Which region you hit with a request can either be configured in the request or is otherwise just determined by proximity to the nearest region.

https://learn.microsoft.com/en-us/azure/cosmos-db/global-dist-under-the-hood

Upvotes: 1

Related Questions