EC2 Spot Instance Request
- Can be discount up to 90% compared to On-Demand.
- Define max instance price and get the instance while current spot instance < max
o the hourly spot instance varies based on offer and
capacity.
o If the current spot instance price > your max
price, you can choose to stop or terminate the instance your instance with 2
minute of grace period.
ü Other Strategy (Spot Block)
o ‘Spot Block’ strategy is work for specific duration
like 1 hour, 6 hours etc.
o In rare situation, the instance may be reclaimed.
Major Use of Spot Instance:
- ü Batch Jobs
- ü Data Analysis
- ü Workload that are resilience to failure
- ü Not
great for critical job or databases
Ø How can you terminate the Spot Instances?
Answer: You have to first cancel the spot instance and then you can only terminate the associated spot instances.
Ø What is SPOT FLEET?
Answer:
- Spot Fleet is combination of
ü the spot fleet will try to
meet target capacity with pricing constraint
o
Define possible launch pool:
instance type (m5.large), OS, Availability Zone
o
Can have multiple launch
pool, so that the fleet can choose
o
Spot fleet stops launching
instance when reaching max capacity or max cost
ü Strategy to allocate Spot
Instance
o
Lowest Price: from the pool
with the lowest price (cost optimized and short workloads)
o
Diversified: Distributed
across all pools (great for availability, long workloads)
o
Capacity Optimized: pool with
the capacity for the number of instances
Note:
Spot Fleets allow us to
automatically request spot instance with minimum price.
No comments:
Post a Comment