Skip to content

Why does my Spot Instance terminate even though the maximum price is higher than the Spot price?

2 minute read
0

Amazon Elastic Compute Cloud (Amazon EC2) terminated my Spot Instance even though the maximum price that I set is higher than the Spot price.

Short description

Amazon EC2 might terminate your Spot Instance even if your maximum price is higher than the Spot price for the following reasons:

  • There's not enough capacity.
    Note: Amazon EC2 might reclaim your EC2 instance to repurpose capacity.
  • There are host maintenance or hardware decommission issues in your instance.
  • Amazon EC2 can't meet your Spot Instance constraints such as a launch group or Availability Zone.

A high maximum price doesn't guarantee Spot Instance availability. For more information, see Spot Instance interruptions.

Note: By default, Amazon EC2 terminates interrupted Spot Instances. However, you can change the default behavior when you create a Spot Instance to hibernate or stop the instance instead.

Resolution

To identify why Amazon EC2 interrupted your Spot Instance, complete the following steps:

  1. Open the Amazon EC2 console.
  2. Choose Spot requests.
  3. Choose the Request ID of the terminated Spot Instance.
  4. Under Status, check Description for the reason code that explains why Amazon EC2 terminated the instance. For example, if Amazon EC2 didn't have enough capacity, then the reason code is instance-terminated-no-capacity.

To work around potential interruptions, use Spot Instance interruption notices.

Related information

Why do I receive a "no Spot capacity available" error when I launch an Amazon EC2 Spot Instance?

Get the status of a Spot Instance request

AWS OFFICIALUpdated 2 months ago