[英]Azure Cosmos Lease Container only creates one lease for whole container even though there are thousands of partitions
I have created an azure function that uses CosmosDBTrigger to monitor changes.我创建了一个 azure 函数,它使用 CosmosDBTrigger 来监视更改。
I added 120,000 items to the container very quickly and watched my azure function scale to 20 servers but there CPU was barely being utilized (except for one)我非常快速地向容器添加了 120,000 个项目,并看着我的 azure 函数扩展到 20 个服务器,但 CPU 几乎没有被使用(除了一个)
I checked my lease container and there was only two items, one being the lease and one being the .info我检查了我的租赁容器,只有两个项目,一个是租约,一个是 .info
Here is the settings for the lease container这是租赁容器的设置
My partition in my container I am listening to is "ClientOrderId" so every order is in its own partition (write heavy).我正在侦听的容器中的分区是“ClientOrderId”,因此每个订单都在其自己的分区中(写入繁重)。 Why isn't my lease container distributing the leases so my azure functions can run in parallel?为什么我的租用容器不分配租用以便我的 azure 函数可以并行运行?
Thanks in advance.提前致谢。
The number of leases is for the Physical Partitions, not Logical Partitions.租用数用于物理分区,而不是逻辑分区。
See: https://docs.microsoft.com/azure/cosmos-db/partition-data请参阅: https : //docs.microsoft.com/azure/cosmos-db/partition-data
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.