📅  最后修改于: 2020-11-07 02:58:40             🧑  作者: Mango
AMI分为两类:
将EBS卷添加到EC2实例的成本很小。
在实例存储-支持的实例中,如果启动实例,则该实例将处于挂起状态。在挂起状态之后,实例进入运行状态,然后它将处于关闭状态。亚马逊只会在其处于运行状态时向您收费。当您终止实例时,Amazon不会向您收取任何费用。例如,如果您要每天运行一个实例4个小时,则每小时的费用为10美分。在实例存储中,我的实例每天24小时运行,因为它没有停止状态。因此,这将花费每月72美元。
在支持EBS的实例中,实例可以处于运行状态或停止状态。在这种情况下,Amazon只需要为运行状态付费,而不要为停止状态付费。例如,如果您要每天运行一个实例4个小时,则每小时的费用为10美分。在以EBS为后盾的实例中,由于实例也处于停止状态,因此它将运行4个小时。我要一个100 GB的卷,要花5美元。一个实例的运行成本为每月12美元。因此,此实例花费的总成本是数量成本加上运行成本,等于17美元。
由EBS支持的实例为我们节省了55美元。因此,我们得出结论,为什么EBS支持的实例比实例存储支持的实例更受欢迎和更快。
Characteristics | EBS-backed instance | Instance Store-backed instance |
---|---|---|
Lifecycle | It supports stopping as well as restarting of an instance by saving the state to EBS volume. | In this case, an instance cannot be stopped. It can be either in a running or terminated state. |
Data Persistence | Data persists in EBS volume. If an instance is terminated, no data would be lost. | Data does not persist so when instance is terminated, data would be lost. |
Boot time | It takes less than 1 min. | It usually takes less than 5 min. |
Size limit | 1 TB | 10 – 16 TB |
AMI creation | AMI is very easily created by using a single command. | To create an AMI, it requires installation and AMI tools. |
Expensive | It is less expensive. | It is more expensive as compared to Instance Store-backed instance. |