429 cloud resource_error ai_generated true

请求速率过大。可能需要更多请求单位,因此未进行任何更改。或在Retry-After时间后重试。

Request rate is large. More Request Units may be needed, so no changes were made. Or retry after the Retry-After time.

ID: cloud/azure-cosmosdb-request-rate-too-large

其他格式: JSON · Markdown 中文 · English
85%修复率
88%置信度
1证据数
2023-08-20首次发现

版本兼容性

版本状态引入弃用备注
Azure Cosmos DB SDK for .NET 3.31+ active
Azure Cosmos DB SDK for Java 4.45+ active

根因分析

应用程序以超过预配吞吐量(RU/s)的速率向Azure Cosmos DB发送请求,导致限制。

English

Application is sending requests to Azure Cosmos DB at a rate exceeding the provisioned throughput (RU/s), causing throttling.

generic

官方文档

https://learn.microsoft.com/en-us/azure/cosmos-db/concepts-limits

解决方案

  1. Implement exponential backoff and retry in application code, respecting the Retry-After header from the Cosmos DB response.
  2. Enable Cosmos DB autoscale throughput to automatically scale RU/s within a configured maximum.

无效尝试

常见但无效的做法:

  1. Increase RU/s to a very high value without monitoring 50% 失败

    May lead to cost overruns; also doesn't address bursty traffic patterns that could still trigger throttling.

  2. Disable retry logic in the SDK 50% 失败

    SDK retries are designed to handle throttling gracefully; disabling them causes immediate failures.