EC2 reserved instance calculation

0

Hello,

I was wondering how the calculation for the EC2 reserved instance works. Because we are using auto-scaling, instances get terminated at night.

We have got 3 instances during the day, and one during the night, but all of those get recycled. Will the reserved calculation just look at the total amount of hours run over all instances?

For example: our total hours run using x different instances in May is 1164 hours. Will a reserved instance of 744 hours (total hours in may) will be substeacted from that amount? So we only have to pay the full hourly price for the remaining 420 hours?

With kind regards, Andries

gefragt vor einem Jahr397 Aufrufe
1 Antwort
0
Akzeptierte Antwort

AWS automatically optimizes which instances are charged at the discounted rate to ensure you always pay the lowest amount. For information about billing, and how it applies to RIs, see Billing Benefits and Payment Options.

So if you purchase 2 RI of type xyz. And your autoscaling group runs 3 instances of type xyz, then 2 of those instances will be charge at the RI rate and the other one will be charge at the On-demand rate. If during night you only have 1 instance type xyz running then you will pay the RI rate for that running instance.

Reserved Instances are billed for every clock-hour during the term that you select, regardless of whether an instance is running. Each clock-hour starts on the hour (zero minutes and zero seconds past the hour) of a standard 24-hour clock. For example, 1:00:00 to 1:59:59 is one clock-hour.

If you purchase one xyz Reserved Instance and run four xyz 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.

However, if you purchase one xyz Reserved Instance and run four xyz instances for 15 minutes (900 seconds) each within the same hour, the total running time for the instances is one hour, which results in one hour of Reserved Instance usage and 0 hours of On-Demand usage.

You can check the How you are billed section to better understand the billing process for RI.

AWS
David C
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen