AWS may send a termination notice of up to two minutes before stopping an EC2 Spot instance. This article explains how Spotinst handles this notice, why shutdown scripts may not always execute in time, and what measures can improve instance availability.
When using Spot instances, AWS provides an up to two-minute termination notice, but the time can occasionally be shorter—sometimes only a few seconds. Spotinst continuously monitors each instance’s status. When AWS decides to terminate the instance, its status changes immediately, regardless of the notification timing.
In situations where AWS lacks available capacity, the shutdown script may not complete before the instance terminates. When such a change occurs, Spotinst automatically launches a replacement Spot instance, provided there are available Spot markets defined in the Elastigroup configuration.
To minimize disruption and maintain availability:
-
Increase the number of instance types included in the configuration, which reduces downtime caused by limited Spot market capacity.
-
Enable the Fall back to On-Demand option, ensuring the service remains available when no Spot capacity is available.
Related Articles
Why instances may not be gracefully terminated when AWS issues a 2‑minute termination notice 3Number of Views Use AWS node termination handler on Spot nodes in EKS 3Number of Views Max Spot Instance Count Exceeded error when launching AWS Spot Instances 23Number of Views Resolve botocore ClientError when stopping Spot Instances 2Number of Views GKE spot instance launches fail due to InstanceTaxonomies incompatibility 7Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add additional feedback (optional)
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
|
FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513
(toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367
(toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895
2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago