If I reserve 1 r4.xlarge for 1 year, but throughout the year I run 2 r4.xlarge instances as follows:

  • 1 instance 10 am to 8 pm every weekday (10 hours, 5 days a week)
  • Another instance 10 am to 8 pm every day (10 hours, every day)

So I only used 20 hours of instances per day (at max). Will this mean that the RI will deduct everything and I don't have to pay anything?

Or will I have to pay the cost of the first instance (running on weekdays) and RI will only cover costs for the second instance (since both are running at same time on weekdays)?

up vote 7 down vote accepted

According to Reserved Instances - How You Are Billed the RI benefit is applied to 3600 seconds of running time across all your instances in a clock-hour.

In your case if you're running the instances concurrently from 10am to 8pm the RI benefit will only offset one instance, however if you run one instance 10am to 8pm and another one from 8pm to 10am it will be applied to both. Even if you run one instance from 10:00 to 10:15 and the other instance from 10:00 to 10:45 - that is in that clock-hour they will run for 3600 together, even if overlapping for some time, you the RI discount will apply.

Have a look at that link Reserved Instances - How You Are Billed - it's well explained there.

Hope that helps :)

  • Thank you for the detailed answer and link. I never seem to be able to find aws docs using google. I went through a lot of docs for reserved instance but didn't find this one. – lucifer Oct 22 at 9:26

You'll have to pay the on-demand rate for one of the instances.

You can run multiple instances concurrently, but can only receive the benefit of the Reserved Instance discount for a total of 3600 seconds per clock-hour; instance usage that exceeds 3600 seconds in a clock-hour is billed at the On-Demand rate.

For example, if you purchase one m4.xlarge Reserved Instance and run four m4.xlarge instances concurrently for one hour, one instance is charged at one hour of Reserved Instance usage and the other three instances are charged at three hours of On-Demand usage.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-reserved-instances-application.html

Which specific instance will receive the benefit of the reserved instance pricing during any given hour is undefined, but this has no impact on what you ultimately pay.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.