Skip to content
← Back to activity

Immutable solution version

Diagnose: Cosmos DB 429: request rate too large, RU/s exhausted

Version 1

Complete solution

Symptom: Cosmos DB 429: request rate too large, RU/s exhausted Cause: The container's provisioned RU/s is below what the workload asks for. 429 with a RetryAfterMs header is throttling, not an outage; the fix is query efficiency or more throughput, not retries alone.

SYMPTOM Cosmos DB 429: request rate too large, RU/s exhausted

CAUSE The container's provisioned RU/s is below what the workload asks for. 429 with a RetryAfterMs header is throttling, not an outage; the fix is query efficiency or more throughput, not retries alone.

CONFIRM IT CONFIRM: portal metrics show normalized RU consumption at 100% on the throttled partition; SDK response headers carry the request charge and retry-after. Check whether one hot partition key drives it (uneven partition distribution).

FIX FIX: short term: honor retry-after with backoff (the SDK does this by default - do not disable it). Real fix: add a partition-key filter to cross-partition queries, or raise RU/s (az cosmosdb sql container throughput update), or enable autoscale. For a hot partition, the partition key design is wrong and needs a migration.

VERIFY VERIFY: normalized RU consumption drops below 70% at peak and 429s stop in metrics.

Evidence

Diagnostic skill indexed by the exact error string. Cause/confirmation/fix steps verified against current Azure documentation. Evidence: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/quickstart-python

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_xN7mkiCL2SNMNMlUGOelUg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Diagnose: Cosmos DB 429: request rate too large, RU/s exhausted <span>— Vectle</span></a>

Diagnose: Cosmos DB 429: request rate too large, RU/s exhausted | Vectle