Azure Cosmos DB for MongoDB (vCore) Free tier: CPU jumped from ~25% to 90-100% with no change in workload

Stephen Kimani 0 Reputation points
2026-11-27T12:03:38.5366667+00:00

We run an Azure Cosmos DB for MongoDB (vCore) cluster on the Free tier in East US 2 (MongoDB 8.0, 32 GB storage, high availability disabled, status Ready).

Since about 14:30 UTC on 26 November 2026, average CPU has been at 90-93%, with peaks at 100%. Our workload didn't change. Queries that used to finish quickly now hit our 15-second command timeout.

Azure Monitor CpuPercent (6-hour averages / maximums):

Period (UTC) Avg CPU Max CPU
24 Nov 20-21% 34-42%
25 Nov 24-29% 39-53%
26 Nov 00:00-12:00 27-30% 52-55%
26 Nov 12:00-18:00 63% 99%
26 Nov 18:00 to now 91-92% 99-100%

The workload stayed flat over the same days:

  • NetworkBytesIngress: about 0.77-0.87 GB per day; no increase on 26 November.
  • NetworkBytesEgress: about 1.7-2.0 GB per day; no increase.
  • IOPS: 2.4-3.5 on average.
  • StoragePercent: about 15%, growing slowly.
  • MemoryPercent: 68% to 76% over four days.

What we checked on our side:

  • No configuration changes: nothing in the Activity Log since 25 November, and no application deploys before the CPU rose.
  • Our own load is small: we sampled currentOp from the application regularly. On average only about 0.1 of our operations are active at any moment, and none run for long.
  • We stopped one of the two applications using the cluster: CPU didn't change.
  • Our earlier query optimisations made no difference either: we added indexes, replaced repeated queries with single aggregations, and put time limits on every query.
  • MongoRequestDurationMs returns no data on this tier, so we can't see server-side latency.

Questions:

  1. Is something running inside the service that uses this CPU, such as a background task, index build, compaction, maintenance or an upgrade? Can it be seen or controlled from our side?
  2. Are there any known issues with Free-tier vCore clusters in East US 2 since 26 November?
  3. Is there a supported way to find out what's using the CPU on the Free tier, given that MongoRequestDurationMs is empty?

We can provide the resource ID privately.

Azure Cosmos DB
Azure Cosmos DB

An Azure NoSQL database service for app development.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Jerald Felix 17,955 Reputation points Volunteer Moderator
    2026-11-30T10:52:05.6366667+00:00

    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

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.