Stop & Resume Workloads on EC2 Spot Instances

Stop & Resume Workloads on EC2 Spot Instances


Related discussions:

Seriously, what’s next? The ability to build a car on AWS?

I’m hoping for cheaper egress bandwidth personally. I know I’m just an individual rather than an enterprise and enterprises can afford $0.09/GB for data (Unless they’re serving multimedia or something), but for the average Joe like me who wants to store some backups on glacier and maybe a game server or two on EC2 for me and my friends, $0.09/GB egress bandwidth is way, way too much.

Nonetheless, loving the improvements, and looking on with envy wishing I could use the service for my infinitesimally small scale workloads, at-least, compared to the people that have megaclusters on AWS.

My thoughts exactly. AWS is absolutely crushing the competition. Glad I decided long ago to jump on the AWS bandwagon instead of Azure even though I’m a Microsoft shop.

I’d use that service.

I’m hoping for cheaper egress bandwidth personally.

+1

This opens a lot of doors for spot instances. The biggest hurdle was architecting around the instance potentially terminating unexpectedly. If it just stops and can simply be started once prices drop again, one could feasibly use this for a lot more things.

If they could add the feature hibernate / sleep (equivalent to shutting the lid of an laptop) instead of shutdown it would be fool proof and most applications seem to support it quite well. This comes from someone who initially had trouble with init.d / upstart auto starting things and was running an MVP using screen and ssh.

that CloudFormation will drive i’m sure.

looks like i can’t STOP a spot request instance myself. was that supposed to be a feature? for that test, it was not in persistence mode.

i do have one spot request instance in persist mode that does not appear to be stoppable. but this one was launched last month.

i don’t have any spot fleets. just what am i going to gain from this? anything?

Wow, if spot instances could suspend to S3 and resume from where they stopped, it would be amazing.

My experience with spot requests predates persistent spot instances, but when I used them you had to make an api request to shut them down without having the spot request stand it back up immediately. I just set an IAM role on the instance that allowed it to cancel the spot request when the task finished.

The value here is that it’s easier to create resumable tasks that can run for less money if they’re not time sensitive. Previously it was possible, but you had to persist your data off of the instance to insure resumability. Now you can store data on the instances ebs volumes and it will be there on resumption.

for persisting the data, i am now using EFS.

Lightsail has cheap bandwidth. You can host your stuff there or use it as a proxy.

Yeah, I saw that, but it’s a bit of a pain attempting to reorchestrate everything through Lightsail, it increases latency (If only by a few milliseconds), and a lot of software (especially that designed to just be “deployed”) do things like acquiring their own IP addresses from EC2’s metadata service for inbound connections, which would obviously be invalid (As it’d need to be routed through lightsail), requiring modification to software.

It is a solution, just not perfect. You know?

It’s convenience vs pricing, as always.

I understand that with systems like RDS vs raw EC2, but with Lightsail Amazon is literally giving away extra processing power/RAM/IPs/etc… just because they don’t want to give free (/cheaper/included) egress bandwidth to EC2. It’s not like they’re selling convenience like with their managed services, it’s just… almost like a pricing error, except they’ve acknowledged it and don’t really care.

It’s not that they don’t want to give something for free. It’s that they want a piece of ultra-cheap VPS market. You should be spending most of your traffic money on S3 and Cloudfront if you’re running a big operation.

https://aws.amazon.com/about-aws/whats-new/2017/11/amazon-ec2-spot-lets-you-pause-and-resume-your-workloads/

Yeah, it seems like they read my comment, haha