EC2 Options
EC2 Options
EC2 Options
Spot Instances
• Run fault tolerant workloads for up to 90% off.
• Gives you unused EC2 capacity in AWS cloud.
• Can be used for various stateless, fault tolerant or flexible applications such as
big data, containerized workloads.
• Can easily combine Spot instances with On-demand, RIs and Savings plan
instances to further optimize workload cost with performance.
• Have the option to hibernate, stop or terminate your Spot instances when EC2
reclaims the capacity back with 2 minutes of notice.
• Concepts:
▪ Spot capacity pool – A set of unused EC2 instances with the same
instance type (for example, m5.large) and Availability Zone.
▪ Spot price – The current price of a Spot Instance per hour.
▪ Spot Instance request – Requests a Spot Instance. When capacity is
available, Amazon EC2 fulfils your request. A Spot Instance request is
either one-time or persistent. Amazon EC2 automatically resubmits a
persistent Spot Instance request after the Spot Instance associated with
the request is interrupted.
▪ EC2 instance rebalance recommendation – Amazon EC2 emits an
instance rebalance recommendation signal to notify you that a Spot
Instance is at an elevated risk of interruption. This signal provides an
opportunity to proactively rebalance your workloads across existing or
new Spot Instances without having to wait for the two-minute Spot
Instance interruption notice.
▪ Spot Instance interruption – Amazon EC2 terminates, stops, or
hibernates your Spot Instance when Amazon EC2 needs the capacity
back. Amazon EC2 provides a Spot Instance interruption notice, which
gives the instance a two-minute warning before it is interrupted.
Capacity Reservations
On-Demand Capacity Reservations enable you to reserve compute capacity for your
Amazon EC2 instances in a specific Availability Zone for any duration. Capacity
Reservations mitigate against the risk of being unable to get On-Demand capacity in
case there are capacity constraints. If you have strict capacity requirements, and are
running business-critical workloads that require a certain level of long or short-term
capacity assurance, we recommend that you create a Capacity Reservation to ensure
that you always have access to Amazon EC2 capacity when you need it, for as long as
you need it.
You can create Capacity Reservations at any time, without entering into a one-year or
three-year term commitment. The capacity becomes available and billing starts as
soon as the Capacity Reservation is provisioned in your account. When you no longer
need the capacity assurance, cancel the Capacity Reservation to release the capacity
and to stop incurring charges. You can also use the billing discounts offered by Savings
Plans and Regional Reserved Instances to reduce the cost of a Capacity Reservation.
Capacity Reservations can only be used by instances that match their attributes. By
default, they are automatically used by running instances that match the attributes. If
you don't have any running instances that match the attributes of the Capacity
Reservation, it remains unused until you launch an instance with matching attributes.
***