- Newest
- Most votes
- Most comments
Hello.
The vCPU for t2.2xlarge is 8.
The error is due to the spot instance's vCPU default quota of 5 being exceeded.
The service quota for spot instances is limited by the number of vCPUs, not the number of instances.
Please apply for an increase in the limit from the service quota.
https://docs.aws.amazon.com/general/latest/gr/ec2-service.html
The maximum number of vCPUs for all running or requested Standard (A, C, D, H, I, M, R, T, Z) Spot Instances per Region
The number of vCPUs for each instance type can be found in the following document.
https://aws.amazon.com/ec2/instance-types/?nc1=h_ls
Also, I don't think this has anything to do with this case, but I will share it with you just in case.
The use of "--spot-price" is discouraged because it increases the likelihood of stoppages.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/request-spot-instances.html
--spot-price (string)
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
Thank you. Didn't know the limit was for vCPU. Thank you. I also took out the Spot Instance price. Thanks or letting me know and saved me the trouble I would have had later.