AWS EC2如何精确计算每小时成本? [英] How exactly does AWS EC2 count hourly costs?

查看:433
本文介绍了AWS EC2如何精确计算每小时成本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个简单的问题:

如果我有六个完全相同的EC2实例处理数据的时间恰好是十分钟,然后关闭,则需要六个小时还是一个小时?

If I had six identical EC2 instances process data for exactly ten minutes and turn off would I be charged six hours or one hour?

推荐答案

更改的粒度一直到小时。

Granularity for changes are measure down to the hour.

从AWS定价网站 http://aws.amazon.com/ec2/pricing/


从启动实例
到终止实例或停止实例,每个实例每小时消耗的实例价格。所消耗的每个
部分实例小时都将按一个小时计费。

Pricing is per instance-hour consumed for each instance, from the time an instance is launched until it is terminated or stopped. Each partial instance-hour consumed will be billed as a full hour.

除非您计算的时间不超过免费套餐的最低阈值,即您使用一小时付费的EC2实例的第二个阈值。如果您在第一个小时内花了一秒钟,那么第二个小时便要收费。

Unless you are calculating time to be under a threshold for a free tier, the second you use an EC2 instance you're charged for the full hour. If you go one second over the first hour, your charged for a full second hour.

一个警告:竞价型实例。

One caveat: Spot Instances.

如果在使用一小时之前,现货实例被AWS(不是您)中断了,则完全不会向您收费。如果您中断了竞价型实例,则需要支付部分小时的使用费(根据请求的实例,该时间为一整小时)。

If spot instances are interrupted by AWS (not you) before reaching a full hour use, you're not charged at all. If you interrupt the spot instance, you're charge for the partial hour usage (which is a full hour rounded up as per the on-demand instances).

这篇关于AWS EC2如何精确计算每小时成本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆