How to control your percentages of spot and on-demand EC2 instances for your AWS ASG

Tremaine Eto
An Idea (by Ingenious Piece)
2 min readJan 5, 2022

Photo by Mehmet Ali Peker on Unsplash.

In your Amazon Web Services Auto Scaling Group, you have the ability to specify what percentage of EC2 instances that come up are on-demand instances or spot instances.

AWS Auto Scaling is smart enough to convert this percentage into a number of instances for each. If the result of this is fractional, then the algorithm…

Tremaine Eto
An Idea (by Ingenious Piece)

Senior Software Engineer @ Iterable | Previously worked at DIRECTV, AT&T, and Tinder | UCLA Computer Science alumni | Follow me for software engineering tips!