I would like to create an auto scaling group [ASG] with spot instances as a supplement to my production ASG that has on-demand instances.
After reading this post , I would like to mimic it but maybe without the dynamic bidding and auto-scaling at first.
So, I was wondering , if I just set the bid price for the spot instances equal to the on-demand price of the instance I use [m3.large] , would I be paying the lowest bid price [for that instance, in the region, in that hour] ??
So if the spot price is $0.01 and my max bid in the ASG is $0.067 , I would be paying $0.01 for every spot instance the ASG launches, right?? [That is what I understood from the AWS docs but I would like a confirmation]
And finally, by this kind of thinking [that I suppose I am not the only one to have] do I drive the spot instance prices up ?
Spot instance prices are different among Availability Zones. You pay based on the market price (M) where your instances are in.
You set a bid price (B). The payment rule is:
Your bid is only the maximum amount that you want to pay for the spot-instances.
For more detail, you can see the official documentation. The market prices are driven by availability free resources and market demand.
For a bidding strategy, you can consult Spot Bid Advisor. In that page, you can find which instance types has lower outbid frequency based on the bid.
Added as per @Michael's suggestion on comment below:
The current market price is the lowest bid among all currently running instances. As an illustration, let say there were 3 instances were available (maybe more in the real case), and there were 4 bids for $1, $2, $3, and $5, the three highest bidders would have running instances, and the market price would be $2. So, your bid price may drive the spot instance indirectly if you are a winning bidder and there are more open bids than available spot instances.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With