An Azure NoSQL database service for app development.
Hello Stephen,
Thanks for posting it in the Azure Q&A Forum.
When an Azure Cosmos DB for MongoDB (vCore) (now also referred to as Azure DocumentDB with MongoDB compatibility) Free tier cluster jumps from ~25% CPU to a sustained 90–100% with flat ingress/egress and low IOPS, there are three primary mechanisms on this tier—and ways to diagnose them even without MongoRequestDurationMs:
1. Background Engine Maintenance & Storage Compaction (Most Likely)
What happens under the hood: Azure Cosmos DB for MongoDB (vCore) runs on a PostgreSQL-based storage engine (FerretDB/DocumentDB architecture) where BSON documents and indexes map to underlying tables and JSONB/B-tree structures. Even when StoragePercent is only ~15% (around 4.8 GB on the 32 GB Free tier), continuous inserts/updates/deletes trigger background autovacuum, table/index compaction, and WAL checkpointing.
Why it hits 90–100% CPU suddenly: The Free tier runs on constrained/shared burstable compute without dedicated compute isolation. Once a background compaction worker, statistics refresh, or deferred index maintenance kicks in—or if CPU burst credits are exhausted—a single background worker thread can saturate the available vCPU slice for hours/days, starving incoming user queries and causing your 15-second command timeouts.
Can it be seen or controlled? Because this is a fully managed PaaS Free tier, customers cannot pause, throttle, or schedule background compaction/vacuum tasks directly.
2. How to Inspect What Is Consuming CPU on the Free Tier
Even though MongoRequestDurationMs is not populated on the Free tier, you can inspect active server-side operations and slow queries directly from mongosh:
Check all operations including internal/system threads: Standard db.currentOp() filters out idle and system/internal operations by default. Run currentOp with $all: true on the admin database to see internal background tasks, lock waits, or stuck cursors:
JavaScript
use admin
db.runCommand({
Look closely at entries where "active": true or "waitingForLock": true—system/maintenance operations will often appear here even when your application shows 0.1 active ops.
Check the Database Profiler (system.profile) & Execution Plans:
Check if profiling is supported/enabled on your database to capture slow server-side operations (> 100 ms):
JavaScript
db.getProfilingStatus()
Run `.explain("executionStats")` on your key aggregations/queries to verify whether a recent index addition caused the query planner to choose a suboptimal index or perform a `COLLSCAN` / in-memory sort that spikes CPU per call.
__Check Azure Resource Health & Service Health:__
In the Azure Portal, open your cluster -> __Resource health__ (under _Help_) and __Service Health__ -> __Health advisories__ for __East US 2__. There are no publicly listed broad East US 2 outages for MongoDB vCore on November 26, 2026, so __Resource health__ will tell you if your specific underlying host experienced a platform degradation or noisy-neighbor host issue.
3. Practical Workarounds & Next Steps
Trigger a clean node restart via a non-destructive update (or test scaling): On the Free tier, you don't have a direct "Restart" button, and Free-tier clusters do not have an SLA. If currentOp({ "$all": true }) shows a stuck background task or platform-level saturation that does not clear, scaling temporarily to the lowest paid tier (M25) or creating a fresh cluster and migrating via mongodump / mongorestore will move your workload onto a fresh compute node immediately.
Open an Azure Support Request (Free Tier / Technical): Even on the Free tier, you can open a support ticket in the Azure Portal (Help + support -> Create a support request) under Technical -> Azure Cosmos DB for MongoDB (vCore) with your cluster resource ID and the 14:30 UTC, 26 Nov 2026 timestamp. The backend team can inspect host-level telemetry for your East US 2 node to confirm whether a stuck internal background job or host-level contention is saturating the CPU.
If your issue gets solved with this answer kindly accept the answer. It will help others to resolve similar question.
Best Regards,
Jerald Felix