Answers: <p>At the beginning of each hour that a spot instance is running (instance hour, not wall-clock hour), the current spot price for instances of that type and availability zone is captured, and you pay that price for that hour.  The next hour, and each hour after that, the process repeats.  If the market price rises above your bid while the instance is running, the spot instance is terminated, but not sooner than 2 minutes after the price shifts.  What happens after that depends on whether the spot request was persistent and how you configured termination/hybernation behavior. </p>
  
  <p><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html#spot-pricing" rel="nofollow noreferrer">https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html#spot-pricing</a></p>
  
  <p>Spot instances can also be termimated at any time without a price change, if the capacity is no longer available, such as can happen due to an increase in the number of on-demand instances, causing the size of the available spot pool to be reduced.  Available capacity changes do not necessarily correlate with an immediate change in the market price.  This did happen prior to the <a href="https://aws.amazon.com/blogs/aws/amazon-ec2-update-streamlined-access-to-spot-capacity-smooth-price-changes-instance-hibernation/" rel="nofollow noreferrer">change in the spot price algorithm in late 2017</a> but spot price fluctuations are now dampened -- more loosely coupled to demand -- to prevent the sometimes dramatic price volatility (and presumably some market gaming) that occured with the old algorithm.</p>
  
Answers: CC BY-SA 4.0
Answers: 2019-01-26T03:41:03.000Z
Answers: 2019-01-26T03:41:03.000Z
Answers: Michael - sqlbot
Body: <p>AWS EC2 Spot. My Spot Max Bid Price - 2$.  Current Spot Price - 1$. How much I'll pay for instance? 2$ per hour or 1$ (and increasing|decreasing), equal to Current spot price, while my bid price is less than current (and get an error if current is more than my bid). Thanks!</p>
  
Comments: CC BY-SA 4.0
Comments: 2019-03-14T08:12:33.023Z
Comments: Suggest edits on this as it's very confusing . I see an answer was given but I'm not clear on what this question is actually saying
Comments: sheldonhull
Tags: <amazon-web-services>
Title: How much I will pay for AWS spot: my bid or current spot price?
UserDisplayName: Dmitry G
ThreadText: # How much I will pay for AWS spot: my bid or current spot price?
  
  (Asked by: username_0 on 2019-01-16)
  
  AWS EC2 Spot. My Spot Max Bid Price - 2$. Current Spot Price - 1$. How much I'll pay for instance? 2$ per hour or 1$ (and increasing|decreasing), equal to Current spot price, while my bid price is less than current (and get an error if current is more than my bid). Thanks!
  
  **Tags:** amazon-web-services
  
  > **Comments:**
  > **username_1**: Suggest edits on this as it's very confusing . I see an answer was given but I'm not clear on what this question is actually saying  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2019-01-26. Score: 1
  
  At the beginning of each hour that a spot instance is running (instance hour, not wall-clock hour), the current spot price for instances of that type and availability zone is captured, and you pay that price for that hour. The next hour, and each hour after that, the process repeats. If the market price rises above your bid while the instance is running, the spot instance is terminated, but not sooner than 2 minutes after the price shifts. What happens after that depends on whether the spot request was persistent and how you configured termination/hybernation behavior.
  
  <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html#spot-pricing>
  
  Spot instances can also be termimated at any time without a price change, if the capacity is no longer available, such as can happen due to an increase in the number of on-demand instances, causing the size of the available spot pool to be reduced. Available capacity changes do not necessarily correlate with an immediate change in the market price. This did happen prior to the [change in the spot price algorithm in late 2017](https://aws.amazon.com/blogs/aws/amazon-ec2-update-streamlined-access-to-spot-capacity-smooth-price-changes-instance-hibernation/) but spot price fluctuations are now dampened -- more loosely coupled to demand -- to prevent the sometimes dramatic price volatility (and presumably some market gaming) that occured with the old algorithm.
  
  
  ---
  
  