PierreBeucher / cloudypad

Your own gaming gear in the Cloud ! 🎮 ⛅
GNU General Public License v3.0
76 stars 6 forks source link

[new feature] Spot instances in GCP #49

Closed JScaffo closed 1 week ago

JScaffo commented 1 week ago

Hi!

GCP allows for SPOT instances that run significantly cheaper than standard instances, with the downside that they can shut down if there are not enough resources available to other users that require a standard instance.

Setting the max run duration of the instance to 6hr I didnt have any problems running my spot instance and I think it would be beneficial to have the option as it can halve the costs.

It should be easy to add with pulumi gcp.compute.instance (https://www.pulumi.com/registry/packages/gcp/api-docs/compute/instance/), here are the important parameters:

image

image

Thank you and keep up the good work!

PierreBeucher commented 1 week ago

Hi there ! Thanks for your suggestion, I'm actually actively working on it via https://github.com/PierreBeucher/cloudypad/pull/43 - I hope to release by end of september.

There's an issue already open for Spot: https://github.com/PierreBeucher/cloudypad/issues/41 so I'm gonna close this one, feel free to comment on the other issue ;)