An Azure NoSQL database service for app development.
Hi Dipesh,
Thank you for providing the detailed investigation and screenshots.
Based on the information shared, there is a noticeable difference between the logical MongoDB data size (~300 MB reported through db.stats() and collection statistics) and the node-level storage consumption (~42 GB) reported by Azure Metrics.
In Azure Cosmos DB for MongoDB (vCore), the Storage Used metric reflects overall storage consumption at the node level and is not limited to collection data alone. As documented, storage usage can include database files, temporary files, transaction logs, server logs, and other service-managed components in addition to the logical data stored in collections.
Because Cosmos DB for MongoDB (vCore) is a managed service, low-level storage engine diagnostics such as serverStatus() are not exposed. As a result, it is not possible from the customer side to determine the exact breakdown of the additional storage consumption.
The key observation here is that storage usage continues to grow over time despite the logical data size remaining relatively small and after maintenance operations such as compact(). This behavior warrants further investigation to determine whether the growth is related to internal storage allocation, retained service-managed files, or another backend condition.
To help narrow this down, could you please share the following details?
- Is the storage growth observed only on the primary node, or across all nodes/replicas?
- Approximately when did the
OutOfDiskSpace (14031)error first occur? - Are there any recent scaling operations, failovers, maintenance events, or workload changes that coincide with the start of the growth trend?
- What are the current values for Storage Percent and IOPS during the period of growth?
If the growth continues and cannot be correlated with application data growth, I would recommend opening a support request so the engineering team can review the backend storage allocation and identify the specific components contributing to the node-level disk usage.
Relevant documentation:
- Azure Cosmos DB for MongoDB (vCore) monitoring metrics: https://learn.microsoft.com/azure/cosmos-db/mongodb/vcore/monitor-metrics
- Compute and storage concepts for Azure Cosmos DB: https://learn.microsoft.com/azure/cosmos-db/compute-storage
I look forward to your update.