Spot prices vary among availability zones. You pay at the market price (M) where your copies are.
You set the bid price (B). Payment Rule:
- If the market price is lower than or equal to your bid (M <= B), and there are free resources on the pool of random copies, you pay the market price .
- If the market price is higher than your bid (M> B, outbid) or free resources for a pool of random copies, your spot copies will be terminated and there is no need to pay the current hour. You only need to pay for all the hours that you used.
- If you run specimen spots for less than an hour, and you complete it yourself, you need to pay for that hour.
Your bid is just the maximum amount you want to pay for spot instances.
For more details, you can see the official documentation . Market prices are determined by the availability of free resources and market demand.
For a bid strategy, you can consult a Spot Advisor . On this page you can find which types of instances have a lower rate of outgoing traffic based on the bid.
Added as suggested by @Michael to the comment below:
The current market price is the lowest rate among all currently running copies. As an illustration, suppose that 3 copies were available (maybe more in the real case), and there were 4 bets for $ 1, 2, 3 and 5, the three highest participants would have launched copies, and the market price would be $ 2 . Thus, your bid price may indirectly indicate a spot instance if you are the winner of the bidding, and there are more open bids than available instances of the place.
source share