News for hackers. Stuff that matters.
Re:GCP releases Spot VMs, the next generation of Pre-emptibl... by wmf on Wednesday October 13, 2021 @01:05AM (#28848425)
You might be misunderstanding how spot works. The VM either runs at full speed or not at all so you know what you're getting.
Re:GCP releases Spot VMs, the next generation of Pre-emptibl... by titzer on Wednesday October 13, 2021 @01:20AM (#28848493)
Nevertheless, doesn't that force you to divide your work up into units somehow and manage external storage to track what/how much is done?
Re:GCP releases Spot VMs, the next generation of Pre-emptibl... by jiggawatts on Wednesday October 13, 2021 @01:30AM (#28848546)
Yes, but this is common for "cloud native" applications. Web servers are ideally stateless "cattle", not "pets". Code is pulled down via CI/CD pipelines or via container images. State is in databases or blobs. Logs stream to some sort of analytics system.

Similarly, Kubernetes works well with spot VMs. You can have Spot and Regular node pools in one cluster, and then your workloads can happily spread out to the extra capacity at a huge discount.

Re:GCP releases Spot VMs, the next generation of Pre-emptibl... by Spivak on Wednesday October 13, 2021 @01:44PM (#28855148)
It's really easy to "beat" the chaos monkey with this kind of design. You can destroy any VMs in our infra with reckless abandon and everything will be fine. If you destroy all the VMs of particular service obviously it will affect availability but it will still recover by itself in about 60 seconds.
Re:GCP releases Spot VMs, the next generation of Pre-emptibl... by wbl on Wednesday October 13, 2021 @01:33AM (#28848562)
You have to do that anyway for serious batch processing.
Re:GCP releases Spot VMs, the next generation of Pre-emptibl... by pushrax on Wednesday October 13, 2021 @02:52AM (#28848997)
The reality at scale is that all cloud VMs are preemptible and unreliable. You can pay more to increase the probability of uptime but inevitably have to recover from failure sometimes.
Re:GCP releases Spot VMs, the next generation of Pre-emptibl... by ClumsyPilot on Wednesday October 13, 2021 @07:37AM (#28850933)
The reality is itselt preemptible and unreliable, you could be terminated without notice
Re:GCP releases Spot VMs, the next generation of Pre-emptibl... by junon on Wednesday October 13, 2021 @04:51AM (#28849809)
This is absolutely the correct way of thinking about this problem, and exactly how most people I've seen successfully use pre-empt instances treat them as well.
Re:GCP releases Spot VMs, the next generation of Pre-emptibl... by pm90 on Wednesday October 13, 2021 @04:30AM (#28849690)
There are tools that enable this (e.g. look at temporal.io).

As for external storage: yes, you do generate more metadata, but that's often a tiny fraction of the cost saved by moving to spot machines.

In general, these tools are adopted more for increasing reliability of existing systems, but I predict they would be a neat fit to run them on spot machines.

Re:GCP releases Spot VMs, the next generation of Pre-emptibl... by orlovs on Wednesday October 13, 2021 @07:10AM (#28850741)
+1 for Temporal. Using in prod, its great
Re:GCP releases Spot VMs, the next generation of Pre-emptibl... by swyx on Thursday October 14, 2021 @06:35PM (#28871092)
(i work at Temporal) nice! glad you're happy with it, would love to learn more if you have any compliments/complaints, lets hear it :)
Re:GCP releases Spot VMs, the next generation of Pre-emptibl... by dagw on Wednesday October 13, 2021 @05:21AM (#28850009)
That is probably the primary use case for spot instances and certainly how I tend to used them. I have a few thousand files that need processing and each files takes 30 minutes. So I spin up 100 spot instances and use a small script to copy the file from a control machine to the next available remote machine, start the processing script, and then copy the result back when done.

I've also got another script that keeps track of how many spot instances are currently running and spins up some new ones (possibly in a different region) if they fall below a certain level.

Re:GCP releases Spot VMs, the next generation of Pre-emptibl... by NavinF on Wednesday October 13, 2021 @02:29AM (#28848860)
You gotta do that anyway. It really sucks when a multi-day job crashes halfway through because of some silly bug and then you gotta restart from the beginning. The ability to resume from crashes is required regardless of where you're running the code.