简体   繁体   English

如何在 Cosmos DB 中查找逻辑分区计数和大小

[英]How to look up logical partition count and size in Cosmos DB

In Cosmos DB, is it possible to see how many logical partitions my database has created and the current fill capacity of each partition?在 Cosmos DB 中,是否可以查看我的数据库创建了多少个逻辑分区以及每个分区的当前填充容量? I'd like to know how evenly my partitioning strategy is dividing data.我想知道我的分区策略如何均匀地划分数据。 Also, I'd like to prepare for data re-distribution before I hit the 20GB limit on a hot partition.另外,我想在热分区达到 20GB 限制之前为数据重新分配做准备。

Azure monitor for Cosmos DB.用于 Cosmos DB 的 Azure 监视器。 Check out the metrics.查看指标。

https://docs.microsoft.com/en-us/azure/cosmos-db/use-metricshttps://docs.microsoft.com/en-us/azure/cosmos-db/use-metrics

The accepted answer doesn't give you size metrics by partition.接受的答案不会按分区为您提供大小指标。 You can find the partition breakdown by following these steps:您可以按照以下步骤找到分区细分:

  1. Go to the Overview page of your Cosmos DB instance in Azure Portal Go 到Azure 门户中 Cosmos DB 实例的概述页面
  2. In the Monitoring section select "Metrics (Classic)"在监控部分 select “Metrics (Classic)”
  3. Click on the Storage tab单击存储选项卡
  4. Select the database and container of interest Select 感兴趣的数据库和容器
  5. In the "Data + Index storage consumed by top partition keys" panel is a chart of data consumption by key.在“Data + Index storage by top partition keys”面板中是按 key 的数据消耗图表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM