astronomy-commons / genesis-jupyterhub-automator

When you need to quickly deploy a JupyterHub instance for tutorials, workshops, classes, and more.
MIT License
6 stars 2 forks source link

Utilizing spot instances #13

Open connolly opened 4 years ago

connolly commented 4 years ago

Can we utilize or price spot instances so that the likelihood of being evicted is low?

stevenstetzler commented 4 years ago

Kind of. There are two variables that factor in to a spot instance getting interrupted: price and capacity (see here). We can set our maximum payment price to be quite high so that we won't ever get interrupted if the price for spot instances of a certain types increases. However, we have no control over the capacity constraints of AWS. If someone decides to rent out an entire region, we can't do anything to have the spot instances not be interrupted.

stevenstetzler commented 4 years ago

But there's no technical barrier to prevent this tool from using spot instances instead of on-demand instances.

mjuric commented 4 years ago

Let's make that the next feature to add to the automatic (and our deployment)