Hibernate is just like good old hibernate from windows XP days. You save the RAM to disk. And resume your processes on next boot and they won't even notice they were stopped! (Except for the time has changed...)
It might be really helpful for low priority batch processing.
Re:AWS EC2 Spot instances can now be stopped and started lik...
by HedgedHuman on Wednesday January 15, 2020 @12:26AM
(#22051944)
Neat! Did not know that. Thanks :-)
The 100GB RAM cap seems rather limiting though.
The ideal case scenario imho (one step beyond this stop/start-at-will feature) would be "convertible" spot - being able to migrate to on-demand with zero downtime when ec2 needs that capacity back - that'd solve a lot of my problems.
Re:AWS EC2 Spot instances can now be stopped and started lik...
by paulfurtado on Wednesday January 15, 2020 @04:00AM
(#22052728)
This isn't actually effective. When there are instance shortages and someone launches an on-demand instance, no matter how high you set your spot bid price your spot instance will still be terminated in favor of the on-demand instance. We run hundreds of spot instances with their max price set higher than on-demand and still see terminations on popular instance types: there are few day-to-day, but periodically nearly all of them are terminated at once. During those situations, if you went to replace the terminated spot instance with an on-demand instance, you'll even get an error stating that they're out of on-demand capacity for the instance type in that zone, so it's pretty clear that it happens when they've completely run out of capacity for some instance type in a zone
Re:AWS EC2 Spot instances can now be stopped and started lik...
by paulfurtado on Wednesday January 15, 2020 @03:52AM
(#22052677)
When a spot instance gets interrupted, they've supported terminate, stop, and hibernate for a while. Hibernate is effectively just stop, but has an additional hook inside the instance to tell linux to save memory to disk while shutting down.
This post is different: with on-demand instances you can stop them whenever you like and only be charged for storage while they're in the stopped state and then start them up when you need them again (keeping all the same settings, like the IP, etc). A stop/start is also the way to effectively move your instance to new hardware if there is an instance with the underlying host. Annoyingly, the stop/start API calls were rejected for spot instances. This announcement means this is now finally possible.
Re:AWS EC2 Spot instances can now be stopped and started lik...
by chad_strategic on Wednesday January 15, 2020 @09:56AM
(#22054644)
If Amazon or wall st. can figure how to make a cut off the trading. At that point they will trade options. Sounds like something I would want to trade... kinda that whole Enron thing... (except hopefully the fraudulent part)
Hibernate is just like good old hibernate from windows XP days. You save the RAM to disk. And resume your processes on next boot and they won't even notice they were stopped! (Except for the time has changed...)
It might be really helpful for low priority batch processing.
Disclaimer: I've never tested this.
The ideal case scenario imho (one step beyond this stop/start-at-will feature) would be "convertible" spot - being able to migrate to on-demand with zero downtime when ec2 needs that capacity back - that'd solve a lot of my problems.
Some AZs don't have much capacity for certain types of instances.
Fun fact: An availability zone A for person 1 is not guaranteed to be the same as availability zone A of person 2. AWS mixes them up per account.
This post is different: with on-demand instances you can stop them whenever you like and only be charged for storage while they're in the stopped state and then start them up when you need them again (keeping all the same settings, like the IP, etc). A stop/start is also the way to effectively move your instance to new hardware if there is an instance with the underlying host. Annoyingly, the stop/start API calls were rejected for spot instances. This announcement means this is now finally possible.
One tip, as an easy way to track api changes in aws, checkout https://awsapichanges.info/
It's for persistent spot requests, so presumably it doesn't include defined-duration spot instances. Perhaps that will come later.
Perfectly possible to work around it even if not, of course.
https://news.ycombinator.com/item?id=22027459