Saturday, November 24, 2018

GCP vs AWS: Temporary instances

Amazon EC2 and Compute Engine both offer temporary instances that become available when resources aren't being fully utilized. These instances—called spot instances in Amazon EC2 and preemptible VMs in Compute Engine—are cheaper than standard instances, but can be reclaimed by their respective compute services with little notice. Due to their ephemeral nature, these instances are most useful when applications have tasks that can be interrupted or that can use, but don't need, increased compute power. Examples of such tasks might include batch processing, rendering, testing, simulation, or web crawling.

Spot instances and preemptible VMs are functionally similar, but have different cost models. Spot instances have two models:

Regular spot instances are auctioned via the Spot Market and launched when a bid is accepted. If a user's bid is the current highest bid, Amazon EC2 creates one or more instances. These instances run until the user terminates them or AWS interrupts them.
Spot blocks have a fixed priced that is less than the regular on-demand rate. However, they can only run for a maximum of six hours at that fixed rate.
Spot instances are restricted to a smaller set of available instance types and predefined machine images than standard EC2 instances. Aside from these limitations, spot instances behave similarly to on-demand Amazon EC2 instances. You have full control over the spot instance while it’s running.

As with Amazon EC2 spot instances, Compute Engine's preemptible VMs are similar to normal instances and have the same performance characteristics. Preemptible VMs contrast with Amazon EC2 spot instances as follows:

Pricing is fixed. Depending on machine type, preemptible VM prices can be discounted to nearly 80% of the on-demand rate.
Unlike Amazon EC2's regular spot instances, Compute Engine's preemptible VMs run for a maximum of 24 hours and then are terminated. However, Compute Engine can terminate preemptible VMs sooner depending on its resource needs.
If you use a premium operating system with a license fee, you will be charged the full cost of the license while using that preemptible VM.

references:
https://cloud.google.com/docs/compare/aws/compute

No comments:

Post a Comment