20

When AWS documentation and pricing refer to "usage" does this simply mean "if the instance is on" instead of "if the instance is on and doing work".

E.g., if I had an EC2 instance running but it was idle (CPU=0%), I assume I still get charged for that hour's usage.

In this case, if I had an EC2 instance which hosted a website (which should be accessible 24/7), it would make sense to purchase a Reserved Instance. Then, if I had to bring other instance online to share the load, those would (likely) best be served as On-Demand Instances.

Is my understanding correct?

Josh M.
  • 667
  • 8
  • 21
  • 3
    Note also that with a "heavy" reserved instance, as you mentioned below, you are charged even if the instance is NOT running. The Heavy utilization class, unlike Light and Medium, gives steeper discounts because you are also committing to pay for 100% of the hours each month. – Michael - sqlbot Jan 14 '14 at 12:47
  • 1
    @Michael-sqlbot - so the only reason to not choose the "heavy" option for a server which will be running 100% of the time is to save the upfront cost. If you have the cash, it's best to go heavy for a 100% "on" instance. (Right?) – Josh M. Jan 14 '14 at 17:25
  • Note that reservations have now changed. Under the new structure, all reservations are Heavy and commit you to paying for the full reservation period whether the instance is running or not, and you can choose to pay all up-front, all monthly, or a mixture. The more you pay up-front, the cheaper it is. – Mike Scott Dec 16 '14 at 06:46

2 Answers2

27

Yes, your understanding is correct. There's no AWS charging based on CPU usage -- you pay the same for an instance whether its CPU usage is 0% or 100%.

Mike Scott
  • 7,903
  • 29
  • 26
6

Yes, that's correct.

You might also look at spot instances for load sharing as they're much cheaper than on-demand instances with the drawback that they can disappear at any time. As long as you can manage that, they're a good option.

Ladadadada
  • 25,847
  • 7
  • 57
  • 90
  • Great, thanks. I just bought some 3yr heavy reserved instances and wanted to do a sanity check. :) Spot Instances sound good for background work that can be done at any point in time. – Josh M. Jan 14 '14 at 07:29