- Newest
- Most votes
- Most comments
There could be a few reasons why you're not receiving EC2 Spot Instance interruption notices:
-
Configuration: Ensure that you have properly configured Amazon EventBridge to capture and process these interruption notices. The notices are emitted as events two minutes prior to the actual interruption (except for hibernation, which occurs immediately).
-
Interruption behavior: Check the interruption behavior you've specified for your Spot Instances. If you've configured them to stop or hibernate instead of terminate, the behavior might differ from what you're expecting.
-
Constraints: If your Spot request includes constraints such as launch groups or Availability Zone groups, instances might be terminated as a group when the constraint can no longer be met, potentially affecting how interruption notices are handled.
-
Auto Scaling Group (ASG) behavior: Your ASG might be handling the interruptions automatically, replacing instances before you notice the interruption. This could explain why your application remained resilient during the AWS FIS experiment.
-
Instance lifecycle: Verify that the instances in question are actually Spot Instances. You can do this by filtering for "Instance lifecycle=spot" in the EC2 console.
-
Interruption reason: Some interruptions might occur without the standard two-minute notice, depending on the reason for the interruption.
To troubleshoot this issue:
-
Double-check your EventBridge configuration to ensure it's set up to capture EC2 Spot Instance Interruption Warning events.
-
Review the instance metadata for your Spot Instances to see if the 'instance-action' item is present, which indicates an impending interruption.
-
Check CloudTrail logs for 'BidEvictedEvent' entries, which would indicate that EC2 terminated a Spot Instance.
-
Verify your ASG and Spot Fleet configurations to ensure they're not masking the interruption process.
If after these checks you're still not seeing interruption notices, it might be worth contacting AWS support for further investigation, as the notices should be emitted under normal circumstances when Spot Instances are about to be interrupted.
Sources
Determine whether Amazon EC2 terminated a Spot Instance - Amazon Elastic Compute Cloud
Managing Spot Instance Interruptions - Overview of Amazon EC2 Spot Instances
Spot Instance interruptions - Amazon Elastic Compute Cloud
Spot Instance interruption notices - Amazon Elastic Compute Cloud
Relevant content
- asked 2 years ago
- asked 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago