Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

High demand on Azure Cosmos DB Emulator when adding a new collection

When I'm trying to add a new collection to database I'm getting this error :

Failed to create collection 'Products'.

Error:
Sorry, we are currently experiencing high demand in this region, and cannot 
fulfill your request at this time. We work continuously to bring more and 
more capacity online, and encourage you to try again. Please do not hesitate 
to email [email protected] at any time or for any reason.
ActivityId: bad1a40a-0000-0000-0000-000000000000, 
Microsoft.Azure.Documents.Common/1.22.0.0

It's a local emulator, what kind of high demmand in this region ?

like image 504
Nicu Besliu Avatar asked Jul 31 '18 13:07

Nicu Besliu


1 Answers

According to the official documentation.

By default, you can create up to 25 single partition collections, or 1 partitioned collection using the Azure Cosmos DB Emulator. By modifying the PartitionCount value, you can create up to 250 single partition collections or 10 partitioned collections, or any combination of the two that does not exceed 250 single partitions (where one partitioned collection = 25 single partition collection).

So basically, if you want to create more partitioned collections or more single-partition collections, just increase the PartitionCount when starting from the command-line:

CosmosDB.Emulator.exe /PartitionCount=100
like image 135
Matias Quaranta Avatar answered Oct 07 '22 00:10

Matias Quaranta