简体   繁体   English

EC2实例是否随机启动/停止?

[英]Do EC2 instances randomly start/stop?

I am trying to wrap my head around EC2 instances, and I am having a bit of an issue. 我试图围绕EC2实例,我有一个问题。 I heard from a friend of mine that Amazon will kill EC2 instances, and then they restart the image (thus losing all state). 我从我的一个朋友那里听说亚马逊将杀死EC2实例,然后他们重新启动图像(从而失去所有状态)。 Unless it uses EBS as a backing store, you get no persistence. 除非它使用EBS作为后备存储,否则您将无法持久化。

But I have been looking into Xen and it seems like instances should easily migrate instead of being killed/restarted. 但我一直在研究Xen,看起来实例应该很容易迁移而不是被杀死/重新启动。

So, do Amazon EC2 instances randomly stop/start an image with all state being managed by something external like EBS? 那么,Amazon EC2实例会随机停止/启动一个图像,所有状态都由EBS等外部管理吗?

Amazon EC2 instances will not be stopped/started/restarted unless you issue a command to do so. 除非您发出命令,否则不会停止/启动/重新启动Amazon EC2实例。

In some situations (eg hardware maintenance), you might receive a request from Amazon asking you to stop & start your instance (which moves it to a different host). 在某些情况下(例如硬件维护),您可能会收到亚马逊的请求,要求您停止并启动您的实例(将其移动到其他主机)。 Such requests are typically issued with two weeks notice. 此类请求通常会在两周后发出。

One AWS customer told me that their instance had been running continuously for over three years. 一位AWS客户告诉我他们的实例连续运行了三年多。

Yes it is quite possible that an EC2 instance dies and is replaced. 是的,EC2实例很可能会死亡并被替换。 Depending upon your data, you may need to use EBS, EFS or S3 to prevent data loss in such cases. 根据您的数据,您可能需要使用EBS,EFS或S3来防止数据丢失。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM