News for hackers. Stuff that matters.

Ask HN: VM hosting that could start under a second?

I have a use case that requires starting a VM (or Docker image, though less ideal) in under a few seconds, using a pre-setup image.

I need to run them for 1-2 minutes and then kill them, i.e. looking for a hosting provider that charges in small increments (seconds or minutes).

What are my options?

( 11 comments | on HN )
Re:Ask HN: VM hosting that could start under a second? by jamram82 on Friday August 26, 2022 @12:21AM (#32603322)
This could be a fit for serverless frameworks. AWS Lambda and similar frameworks can help you with such usecases. Take a look at Firecracker VM and microVM space.

https://firecracker-microvm.github.io/

Re:Ask HN: VM hosting that could start under a second? by stop50 on Friday August 26, 2022 @12:01AM (#32603199)
containers are the only thing that start that fast. google cloud and azure allow you to create and destroy vms via api and both allow you to use your own base images, i know this much because an colleague currently is setting up an web ui for internal customers.
Re:Ask HN: VM hosting that could start under a second? by punkpeye on Friday August 26, 2022 @12:04AM (#32603218)
Re GCP VMs with base image, do you know how long it takes to boot them?
Re:Ask HN: VM hosting that could start under a second? by stop50 on Friday August 26, 2022 @01:28AM (#32603669)
It depends. With systemd usually a minute, but we have other workloads, so its not comparable. containers are a lot faster, since some steps can be skipped, like ip addresses and other things. Google uses kvm and probably libvirt for the vms, so you can test it localy before.
Re:Ask HN: VM hosting that could start under a second? by verdverm on Friday August 26, 2022 @12:28AM (#32603368)
Typically less than 30s depending on the underlying image size. Their CloudRun product is probably a better fit for the needs you described, super fast boot times, container based, easy scaling
Re:Ask HN: VM hosting that could start under a second? by punkpeye on Friday August 26, 2022 @01:00AM (#32603525)
CloudRun looks promising!
Re:Ask HN: VM hosting that could start under a second? by stop50 on Friday August 26, 2022 @10:47AM (#32608224)
At the same speed as the on-premise vms.the difference because of cloud-init is minimal.
Re:Ask HN: VM hosting that could start under a second? by fomine3 on Friday August 26, 2022 @01:13AM (#32603595)
Re:Ask HN: VM hosting that could start under a second? by punkpeye on Friday August 26, 2022 @01:31AM (#32603684)
Woah! This is _exactly_ what I was looking for :party:
Re:Ask HN: VM hosting that could start under a second? by punkpeye on Friday August 26, 2022 @02:16AM (#32603904)
This service is insane :mind_blown:
Re:Ask HN: VM hosting that could start under a second? by samstave on Thursday August 25, 2022 @11:57PM (#32603190)
Pre-warm spots on aws and kill/propagate as needed and your bill will be a sine wave