0
votes

I'm confused about when you can or cannot hibernate spot instances.

(1.) Under "Hibernation prerequisites," the documentation says that hibernation "is available for On-Demand Instances and Reserved Instances. It is not available for Spot Instances. For more information, see Hibernating interrupted Spot Instances." https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites

(2.) But the following article: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html#hibernate-spot-instances

... says that you can set instances to automatically hibernate upon interruption.


What explains this apparent contradiction?

My guess would be that you cannot manually initiate hibernation from a spot instance, but you can configure a spot to hibernate automatically upon interruption. Is that right?

2
I think you are correct, that you cannot manually hibernate a Spot Instance but it can be hibernated if the Spot Instance is interrupted.John Rotenstein
@JohnRotenstein is right. To add on his reply, only the following spot instances can be hibernated upon interruption: C3, C4, C5, M4, M5, R3, and R4, with less than 100 GB of memoryRon Zhang

2 Answers

2
votes

You cannot manually hibernate a Spot Instance.

However, a Spot Instance can be hibernated automatically if the Spot Instance is interrupted and hibernation has been configured.

See: Preparing for instance hibernation

0
votes

I think it is supported, but with some exceptions. I suspect this sentence is missing the word all:

It is not available for all Spot Instances.

The page that is linked to in the next sentence, Hibernating interrupted Spot Instances, describes the requirements imposed on spot instances.