When I try to change my cluster configuration in Amazon OpenSearch Service, I receive the "InsufficientInstanceCapacity" error message.
Resolution
If the specified Availability Zone doesn't have enough available Amazon Elastic Compute Cloud (Amazon EC2) On-Demand Instance capacity, then you might get the "InsufficientInstanceCapacity" error in OpenSearch Service. To troubleshoot this issue, take the following actions.
Retry after a short wait
Amazon EC2 On-Demand Instance capacity availability frequently changes. Wait a few minutes, and then resubmit your request. When capacity becomes available, your request succeeds.
Reduce the number of instances in your request
If the requested instance type isn't immediately available in the requested Availability Zone, then the "InsufficientInstanceCapacity" error occurs. To prevent this issue, it's a best practice to launch new data nodes in smaller batches instead of as one large request.
For example, if you want to add 15 data nodes to your cluster, then split the request into multiple smaller launches. Before you apply the changes, use the OpenSearch Service console to determine whether a change requires a blue/green deployment.
Important: To upgrade the instance type of existing nodes or add Amazon Elastic Block Store (Amazon EBS) volumes, update all of the nodes at the same time. You can't batch requests.
Don't specify an Availability Zone
Remove the Availability Zone in requests that include one. Then, retry the request so that Amazon EC2 can place the instance in an Availability Zone with available capacity.
Use a different instance type
Select a different instance type to check whether a new type is available. Then, you can resize your instances after you change the configuration.