News for hackers. Stuff that matters.
Re:AWS EC2 Spot instances can now be stopped and started lik... by etaioinshrdlu on Wednesday January 15, 2020 @12:07AM (#22051879)
Spot also supports hibernate on some instance types: https://aws.amazon.com/about-aws/whats-new/2017/11/amazon-ec...

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.

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 teraflop on Wednesday January 15, 2020 @02:24AM (#22052318)
You can (effectively) do that already -- just set your spot bid to the maximum you're willing to pay, i.e. the on-demand price.
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 tedk-42 on Wednesday January 15, 2020 @06:18AM (#22053309)
Spot on!

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.

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 kapilvt on Tuesday January 14, 2020 @07:39PM (#22050744)
Very cool, been running into issues with this previously trying to manage mixed instances kinds in an asg.

One tip, as an easy way to track api changes in aws, checkout https://awsapichanges.info/

Re:AWS EC2 Spot instances can now be stopped and started lik... by chad_strategic on Tuesday January 14, 2020 @10:05PM (#22051437)
Aws spot instances have saved me so much money... it’s such a great service.
Re:AWS EC2 Spot instances can now be stopped and started lik... by Havoc on Tuesday January 14, 2020 @06:19PM (#22050247)
Rapidly moving toward compute as a commodity priced in the same way global commodity markets are. Interesting times
Re:AWS EC2 Spot instances can now be stopped and started lik... by pram on Wednesday January 15, 2020 @08:00AM (#22053801)
When can I start trading options on EC2 pricing though??
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)
Re:AWS EC2 Spot instances can now be stopped and started lik... by heavenlyblue on Wednesday January 15, 2020 @08:51AM (#22054081)
When EC2 becomes an actual market, rather than a monopoly?
Re:AWS EC2 Spot instances can now be stopped and started lik... by MaxBarraclough on Wednesday January 15, 2020 @05:17PM (#22059392)
This is a useful addition.

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.

Re:AWS EC2 Spot instances can now be stopped and started lik... by cliqueiq on Tuesday January 14, 2020 @10:09PM (#22051460)
Obviously a response to yesterdays post:

https://news.ycombinator.com/item?id=22027459

Re:AWS EC2 Spot instances can now be stopped and started lik... by sudhirj on Tuesday January 14, 2020 @10:59PM (#22051660)
Huh? They’re completely unrelated.
Re:AWS EC2 Spot instances can now be stopped and started lik... by a012 on Tuesday January 14, 2020 @11:14PM (#22051709)
No, they're two different things.