azure - 添加新集合时对 Azure Cosmos DB 模拟器的高要求

标签 azure azure-cosmosdb azure-cosmosdb-mongoapi

当我尝试向数据库添加新集合时,出现此错误:

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 <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d5b1bab6b1b7a6a2b4a195b8bcb6a7baa6bab3a1fbb6bab8" rel="noreferrer noopener nofollow">[email protected]</a> at any time or for any reason.
ActivityId: bad1a40a-0000-0000-0000-000000000000, 
Microsoft.Azure.Documents.Common/1.22.0.0

这是一个本地模拟器,这个地区的需求量怎么样?

最佳答案

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

所以基本上,如果您想创建更多分区集合或更多单分区集合,只需在从命令行启动时增加 PartitionCount 即可:

CosmosDB.Emulator.exe /PartitionCount=100

关于azure - 添加新集合时对 Azure Cosmos DB 模拟器的高要求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51614989/

相关文章:

azure - .NET Core 5 的发布配置文件未显示在 Azure 中

azure - Microsoft Cognitive - Face API - 使用 persistedFaceId 进行面对面验证

Azure AD 作为 Okta 的联合提供程序

azure - 使用数据工厂从 cosmos db 作为源进行复制事件时出错

azure-cosmosdb - CosmosDB DocumentDB-API 与 CosmosDB MongoDB-API?

azure - Azure IoT Hub可以注册多少台设备?

django - 如何将 Django 与 Azure Cosmos DB 结合使用?

azure - 如何使用 Azure 存储过程提供分区键

mongodb - 如何从 Azure Function 连接到 Azure Cosmos DB for MongoDB

azure-cosmosdb - 如何为 Mongodb API 禁用 Cosmos DB 分片键