添加新集合时对Azure Cosmos DB仿真器的需求很高 [英] High demand on Azure Cosmos DB Emulator when adding a new collection

查看:64
本文介绍了添加新集合时对Azure Cosmos DB仿真器的需求很高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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 docdbswat@microsoft.com 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 ?

推荐答案

根据官方文档.

默认情况下,使用Azure Cosmos DB仿真器最多可以创建25个单个分区集合或1个分区集合.通过修改PartitionCount值,您最多可以创建250个单个分区集合或10个分区集合,或者两个不超过250个单个分区的组合(其中一个分区集合= 25个单个分区集合).

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 :

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

这篇关于添加新集合时对Azure Cosmos DB仿真器的需求很高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆