- Newest
- Most votes
- Most comments
The error you're encountering is related to OpenSearch Compute Units (OCU) capacity limits in your Bedrock Knowledge Base. When you see "current OCU capacity limit has exceeded," it means your SearchOCU usage has reached the maximum configured limit for your account.
This issue can occur randomly because SearchOCU usage fluctuates based on several factors:
- The number of Knowledge Bases you have created (even if they're not actively being queried)
- The total size of your data (278 GiB across multiple Knowledge Bases can contribute to higher OCU usage)
- The complexity of search operations being performed
Even with relatively low request rates (under 100 requests per day), you can still hit OCU limits because OpenSearch Serverless maintains a minimum of 2 OCUs for search operations even when there's no activity, and scales based on factors beyond just request rate.
The reason your older Knowledge Bases aren't experiencing this issue might be related to their size, configuration, or the number of collections they use.
To address this issue, you can:
- Check your current SearchOCU limits in the AWS Management Console
- Request a quota increase by contacting AWS Support if needed
- Implement request rate limiting in your application
- Monitor your OCU usage with CloudWatch metrics
- Consider reviewing the number of Knowledge Bases you have, as the number of collections can influence SearchOCU consumption even with minimal query activity
- Implement retry logic with exponential backoff for failed requests
If the issue persists, you might want to analyze if there's been a significant increase in the number of searchable documents or fields across your indices, which could impact SearchOCU usage.
Sources
Monitoring OpenSearch Serverless events using Amazon EventBridge - Amazon OpenSearch Service
AWS OpenSearch SearchOCU keeps hitting the max limit | AWS re:Post
Troubleshooting Amazon Bedrock API Error Codes - Amazon Bedrock
answered a year ago
Relevant content
asked 2 years ago
