如何安全地从t1.micro升级Amazon EC2实例到大?实例、安全、micro、Amazon

2023-09-11 08:06:25 作者:孤独老酒

我有一个Amazon EC2的微型实例(t1.micro)。我想这种情况下升级到大。这是我们的生产环境,那么什么是做到这一点的最好的和无风险的方式是什么?

I have an Amazon EC2 micro instance (t1.micro). I want to upgrade this instance to large. This is our production environment, so what is the best and risk-free way to do this?

有没有一步一步的指导,以做到这一点?

Is there any step by step guide to do this?

推荐答案

根据我的经验,我做的方式是创建当前图像的快照,那么一旦它完成推出新的时候,你会看到它作为一个选项实例。只要启动它在这一点上大的实例。

From my experience, the way I do it is create a snapshot of your current image, then once its done you'll see it as an option when launching new instances. Simply launch it as a large instance at that point.

这是我的做法,如果我不希望有任何的停机时间(即生产服务器),因为只有在新的这种解决方案只需要一台服务器下线正在运行起来(我还用它来新机添加到我的集群使用这种做法只会增加新机器)。如果停机时间是可以接受的,然后看到马塞尔·卡斯蒂略的答案。

This is my approach if I do not want any downtime(i.e. production server) because this solution only takes a server offline only after the new one is up and running(I also use it to add new machines to my clusters by using this approach to only add new machines). If Downtime is acceptable then see Marcel Castilho's answer.