Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for new "Spot" instances #12

Open
bo-qeye opened this issue Oct 14, 2021 · 7 comments
Open

Add support for new "Spot" instances #12

bo-qeye opened this issue Oct 14, 2021 · 7 comments

Comments

@bo-qeye
Copy link

bo-qeye commented Oct 14, 2021

GCP recently announced an evolution of preemptible VMs. They are now called Spot VMs.

More info here: https://cloud.google.com/compute/docs/instances/spot

@Burekasim
Copy link
Collaborator

Hi @bo-qeye,

When I review the pricing on GCP website, I can see that the spot pricing is the same as preemptible instances.

How do you think we should present the spot pricing in the website? as additional comments? changing the preemptible title to Preemptible/Spot?

@bo-qeye
Copy link
Author

bo-qeye commented Oct 19, 2021

Hi @Burekasim

Looking into it, it appears, as you point out, that the price is the same for Spot and preemptible.

Seeing as Spot instances are equal or better to preemptible ones in all aspects, I'm guessing that GCP will discontinue (or quietly phase out) preemptible.

I propose changing the title to "Spot/Preemptible", as you suggest.

@nchicong
Copy link

+1
Please add a column for Spot/ preemptible.

@TheKevJames
Copy link

Note that Spot pricing is not (or is no longer) the same as) preemptible pricing.

From https://cloud.google.com/compute/docs/instances/spot#pricing

Spot prices, the prices for Spot VMs, change over time, up to once every 30 days. Specifically, Spot VMs provide at least a 60% discount and up to a 91% discount on the price of standard VMs with the same machine types.

We would need to scrape currently Spot pricing ~monthly and add an entirely new column, as it is valuable to see standard, preemptible, and spot rates.

Note that the catalog API does now support spot pricing in their results.

@Burekasim
Copy link
Collaborator

Hi Kevin,

Thanks for letting me know, when I started working on this website, it took me 4 days until I had to abandon the catalog api because there was no way to get to the same price of gcp calculator.
I will have to review this again. maybe I will start with the spot prices and we will figure out the rest in a later date.

@TheKevJames
Copy link

Yeah, I haven't played with the catalog API yet, but it looked... more complicated than I'd prefer...

I notice (some of?) the GCP pricing page docs have been updated to include the Spot pricing as well (and in some cases no longer show preemptible), so there might be some scraping that can be done?

Mostly the important thing IMO is that the Spot pricing changes monthly and varies per-SKU, so #34 might end up being a prerequisite here :(

@gdubicki
Copy link
Contributor

gdubicki commented Apr 9, 2023

Thanks for letting me know, when I started working on this website, it took me 4 days until I had to abandon the catalog api because there was no way to get to the same price of gcp calculator.

Yeah, I haven't played with the catalog API yet, but it looked... more complicated than I'd prefer...

I also considered using the Catalog API recently, but it was too difficult for my use case, while Infracost API was a pleasure to use, so please check out #36.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants