Any sort of limit in AWS EC2 instances creation using python boto3.session.Session.create_instances

0

Is there any sort of hard limit in AWS EC2 instances creation using python boto3.session?Session.create_instances that are not dependent on the subscription plan

  • like the number of session.create_instances() hits per second?
  • or number of instance creations per second etc.?
  • or number of instances creation using session.create_instances() with same template etc

I am looking for any sort of limit AWS sets for** using boto3.session.Session.create_instances()** that are not dependent on the subscription plan,( means we can upgrade the plan if it is the case like the number of vCPU's )

Junaid
posta 8 mesi fa174 visualizzazioni
1 Risposta
0
Risposta accettata

Hello there,

Thank you for reaching out to us.

I understand that you would like to know if there are any hard limits for launching instances using Boto3 API.

Firstly to mention, there is no specific hard limits here. Apart from vCPU limits, AWS throttle Amazon API requests for each AWS account on per-region basis. AWS ensure that all API calls don't exceed the specific throttling limits. When API request exceeds the API request rate for its category, the request returns the "RequestLimitExceeded" error code. The main reason behind this throttling is to ensure that all the customers, who share same underlying hardware, get fair chance over API calls. It prevents any one customer from utilizing all the resource and thereby ceasing services for other customers. Therefore, the throttle is implemented to make sure the systems can handle as many API request as possible and, at the same time, giving equal opportunity to all the customers.

API Throttling in general can be avoided by ensuring that the application uses an appropriate sleep interval between successive requests, along with exponential back-off retries.

For more information, please refer the following articles :

https://docs.aws.amazon.com/AWSEC2/latest/APIReference/throttling.html

https://aws.amazon.com/builders-library/timeouts-retries-and-backoff-with-jitter/

With this being said, if you have a valid use-case for increasing this API limit, you can request for the limit increase by opening a AWS support case : https://docs.aws.amazon.com/AWSEC2/latest/APIReference/throttling.html#throttling-increase

Thank you!

AWS
Nevin_J
con risposta 7 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande