- Newest
- Most votes
- Most comments
When you're experiencing 429 "Too Many Requests" errors with OpenSearch Serverless despite having set higher OCU limits, there are several factors to consider.
First, it's important to understand that OpenSearch Serverless maintains a minimum of 4 OCUs (2 for indexing and 2 for search) for each collection, even when there's no activity. The system scales automatically based on various factors including data size, query complexity, and request patterns - not just request rate.
The 429 errors you're seeing indicate that your search requests are being throttled. This can happen when:
- The SearchOCU limit has been reached (HTTP 402 error)
- The current OCUs are overloaded by complex queries or high volume (HTTP 507 error)
- There's a temporary spike in requests that exceeds capacity before scaling can occur
For your specific situation with large collections (52 GiB and 610 GiB), the system may need time to scale up when demand increases. There can be a delay between when throttling begins and when additional resources are deployed.
To debug and address this issue:
- Implement an exponential backoff retry policy in your application to handle these throttling errors gracefully
- Monitor CloudWatch metrics for SearchRequestRate alongside your SearchOCU usage
- Check if your queries are particularly complex or resource-intensive
- Consider if your workload patterns have changed (even if total request volume is similar)
- Evaluate if your current OCU limits are appropriate for your workload
Unfortunately, OpenSearch Serverless doesn't provide direct visibility into shard distribution as it manages this internally. The service is designed to handle scaling automatically, but there can be situations where the scaling doesn't happen quickly enough to prevent throttling.
If the issue persists, you might want to consider optimizing your queries, implementing better request batching, or requesting a quota increase if you consistently need more capacity.
Sources
AWS OpenSearch SearchOCU keeps hitting the max limit | AWS re:Post
OpenSearch Serverless OCU usage too high | AWS re:Post
Tutorial: Getting started with Amazon OpenSearch Serverless - Amazon OpenSearch Service
answered a year ago
Hey,
Hope you're keeping well.
429 errors in OpenSearch Serverless usually indicate the service is throttling due to exceeding concurrency or throughput limits, not just total OCU quota. OCUs scale primarily based on sustained latency under load, but if queries spike suddenly or if shard distribution causes uneven load, scaling may not happen instantly. You can monitor search OCU usage and throttling metrics in CloudWatch → AWS/OpenSearchServerless → SearchOCUUtilization and RequestThrottleCount to correlate traffic patterns.
Thanks and regards,
Taz
answered a year ago
Relevant content
asked 2 years ago
