Skip to content

Unable to Create Index in OpenSearch Serverless: Error 507

0

Dear AWS Support Team,

I am encountering an issue when creating an index in Amazon OpenSearch Serverless. Once the number of indexes in a collection exceeds 127, any attempt to create a new index results in the following error: {"error":{"root_cause":[{"type":"internal_server_exception","reason":"Internal error occurred while processing request"}],"type":"internal_server_exception","reason":"Internal error occurred while processing request"},"status":507}

Details:

  • Region: eu-central-1
  • Collection S3 storage used: 6.95 GiB (the only collection configured in the service)
  • Collection type: Vectorsearch
  • Maximum indexing capacity: 2 OCU
  • Maximum search capacity: 4 OCU
  • Index Creation Command: awscurl --service aoss --region eu-central-1
    -X PUT "<OpenSearch_collection_endpoint>/<index_name>"
    -H "Content-Type: application/json"
    -d @<absoluth_path_to_relevant_index_configuration_file>.json
    -v

Please investigate whether this error is related to a limit on the number of indexes per collection, resource constraints, or another factor. I would also appreciate any recommendations for resolving this issue or working around the limitation.

This issue is affecting our production environment, so we would greatly appreciate a prompt response to help us resolve this as soon as possible.

Thank you for your assistance.

Best regards,

Yakir

asked 2 years ago1.7K views

2 Answers
1

Hi,

Generally speaking, http code 507 means insufficient storage: see for example https://sitechecker.pro/what-is-507-status-code/

The size of 6.95 GiB is well below the limit of 1 TiB.

So, how many items do you store in those GiBs? To check if number of items is the issue.

Best,

Didier

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

  • Hi Didier, The collection currently has 126 indexes with 132349 total documents and 6.96 GiB storage. I'm able to create the 127 index successfully but the next fail with 507 error. Appreciate your support, Yakir

0

The error you're encountering (status 507) when trying to create an index in Amazon OpenSearch Serverless after exceeding 127 indexes in a collection is likely related to resource constraints or internal limits within the service.

While there isn't a documented hard limit of 127 indexes per collection in OpenSearch Serverless, the error suggests that you've reached a resource limit or an internal constraint of the service.

To resolve this issue, you have several options:

  1. Optimize your index usage:

    • Review your existing indexes and consider consolidating or removing unused ones.
    • Use index aliases to manage multiple logical indexes within a single physical index.
  2. Adjust your collection settings:

    • Consider increasing your maximum indexing capacity (currently 2 OCU) and maximum search capacity (currently 4 OCU) if your workload requires more resources.
  3. Use multiple collections:

    • If you need to maintain a large number of separate indexes, consider distributing them across multiple collections.
  4. Implement index lifecycle management:

    • Use policies to automatically manage and remove old or unused indexes, keeping your total index count below the limit you're encountering.
  5. Contact AWS Support:

    • Since this issue is affecting your production environment and may be related to an undocumented limitation, it's advisable to open a support case with AWS. They can provide more specific guidance based on your account and usage patterns, and potentially adjust any relevant limits if necessary.

Remember to monitor your OpenSearch Serverless resource usage closely and set up appropriate CloudWatch alarms to alert you before reaching capacity limits in the future.

If these suggestions don't resolve your issue, AWS Support will be best positioned to provide a more detailed investigation and solution tailored to your specific setup and requirements.
Sources
Got an error "Request Entity Too Large" when creating index pattern in AWS Opensearch | AWS re:Post
Troubleshooting Amazon OpenSearch Service - Amazon OpenSearch Service
EffectiveLifecyclePolicyErrorDetail - Amazon OpenSearch Serverless

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.