Result of run-instance request if no spot instance capacity

0

We use java sdk run-instance request to launch spot instances: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/run-instance.html

What will happen when no capacity situation take place during request? Will we have error or Spot Instance Request will be created and it will be in status pending-fulfillment/capacity-not-available?

Is there way how we could produce "Spot capacity not available", "price too low" cases to test application behavior?

Alex
posta un mese fa252 visualizzazioni
1 Risposta
1

Simulating "Spot Capacity Not Available" and "Price Too Low" Scenarios Simulating these conditions for testing purposes can be challenging because they depend on real-time conditions in the AWS Spot Market, which are not directly controllable. However, you can use the following approaches to mimic these scenarios:

  1. Choose a Less Available Instance Type or Availability Zone: Some instance types or Availability Zones may have less available capacity due to high demand. By targeting these in your request, you might increase the chances of encountering a "no capacity" situation.

  2. Set a Very Low Bid Price: Setting a bid price significantly below the current spot price can help simulate the "price too low" condition. You can check the current spot price trends in the AWS Management Console or use the describe-spot-price-history CLI command to find a suitable low bid price.

profile picture
ESPERTO
con risposta un mese fa
profile picture
ESPERTO
Artem
verificato un mese 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