Running cost effective Virtual Machines in the Cloud

The logic makes sense, Cloud Providers have excess capacity and instead of having it there idle generating heat and getting depreciated better use it and sell at cheap(er) price.

Customers gain because they pay less and can use them for lower-priority tasks or Hyper performance batch processing, any service that doesn’t require continuous running.

Preemptive Virtual Machines are excess Compute Engine capacity and their availability varies. A VM of this type can be terminated by the Cloud vendor at any time if it requires access to the underlying resources for other tasks.

In Google Cloud

  • The Compute Engine always terminates instances of this type after they run 24 hours.
  • They might not always be available for provisioning
  • These type of instances are not covered by the Google Cloud SLA
  • These type of instances are not available in the Free-Tier

In Azure

There’s a service call Batch Service but it’s not interactive, you don’t perform a Remote desktop to the instance. The service is provisioned and on the background, the low priority VMs are provisioned.

There’s a service in preview for Scalesets using Low-priority VMs:

The amount of available unutilized capacity can vary based on size, region, time of day, and more. Azure will allocate the VMs if there is capacity available, but there is no SLA for these VMs. A low-priority scale set is deployed in a single fault domain and offers no high availability guarantee.

In AWS

A Spot Instance is an unused EC2 instance that is available for less than the On-Demand price. Because Spot Instances enable you to request unused EC2 instances at steep discounts, you can lower your Amazon EC2 costs significantly.

Amazon can interrupt your Spot Instance when the Spot price exceeds your maximum price, when the demand for Spot Instances rises, or when the supply of Spot Instances decreases. When Amazon interrupts a Spot Instance, it provides an interruption notice, which gives the instance a two-minute warning before Amazon interrupts it.

Roberto

Sources