What You Will Learn
Intermediate
- What Spot Instances are
- How they differ from On-Demand
- When to use them and when not to
Spot Instances are spare EC2 capacity that AWS sells at up to 90% discount. The catch: AWS can terminate them with 2 minutes notice when they need the capacity back.
| Aspect | On-Demand | Spot |
|---|---|---|
| Price | Full price | Up to 90% off |
| Interruption | Never | 2-min notice |
| Best for | Critical workloads | Batch jobs, CI/CD, data processing |
Do not use Spot for
Databases, web servers, anything that cannot tolerate sudden termination. Use Spot for: batch processing, CI/CD, ML training, image processing.Practical Exercise
Go to EC2 -> Spot Requests
Request a Spot Instance (t2.micro)
Compare the price to On-Demand
Note the 2-minute warning feature
Key Takeaways
- Spot = spare EC2 capacity, up to 90% cheaper.
- AWS can terminate with 2-min notice.
- Use for: batch jobs, CI/CD, ML training.
- Do not use for: databases, critical web servers.
- Spot Fleets combine Spot + On-Demand for resilience.
Comments
Comments
Post a Comment