简体   繁体   English

如何安全升级Amazon Web Services中的EC2实例类型? m4.large到m4.xlarge?

[英]How to safely upgrade ec2 instance type in amazon web services? m4.large to m4.xlarge?

We have created an instance (m4.large) where we installed Windows Server 2012 r2. 我们创建了一个实例(m4.large),在其中安装了Windows Server 2012 r2。 It is currently used as a terminal server for SAP business one software with license Remote Desktop Service per device (CAL). 目前,它已被用作SAP Business One软件的终端服务器,并具有每设备许可证CAL的远程桌面服务(CAL)。 We made a mistake in choosing the instance type for it is recommended to use m4.xlarge for terminal servers. 我们在选择实例类型时犯了一个错误,因为建议将m4.xlarge用于终端服务器。 We would like to upgrade our instance type to resolve memory requirement issue. 我们想升级实例类型以解决内存需求问题。

We are new to AWS and would like to seek advise on what would be our best approach. 我们是AWS的新手,并希望就什么是最好的方法寻求建议。 Is it safe to directly upgrade the instance? 直接升级实例是否安全? We have no concerns of downtime for now. 我们暂时不担心停机。 We are also considering in making a snapshot first then launch it on an new and upgraded instance. 我们还考虑先制作快照,然后在新的升级实例上启动快照。 We would like to ask if RDS licenses will also be migrated? 我们想问一下是否还会迁移RDS许可证? Thanks you for your kind replies. 谢谢您的答复。

You can change instance type anytime, but the instance must be stopped. 您可以随时更改实例类型,但是必须停止实例。 If you are not concerned with some minutes of downtime just stop the instance, change the instance type and start the instance. 如果您不关心几分钟的停机时间,只需停止实例,更改实例类型并启动实例即可。 Taking a snapshot as a backup before and frequently is a good precaution. 以前且经常使用快照作为备份是一个很好的预防措施。

This change will have no impact on RDS, as that is a separate service. 此项更改不会对RDS产生影响,因为它是一项单独的服务。

One way would be simply to stop instance and upgrade it. 一种方法就是简单地停止实例并升级它。

Warning 警告

When you stop an instance, the data on any instance store volumes is erased. 停止实例时,所有实例存储卷上的数据都会被删除。 Therefore, if you have any data on instance store volumes that you want to keep, be sure to back it up to persistent storage. 因此,如果要保留的实例存储卷上有任何数据,请确保将其备份到持久性存储中。

Any Amazon EBS volumes remain attached to the instance, and their data persists. 任何Amazon EBS卷均保持连接到实例,并且其数据保持不变。

Any data stored in the RAM of the host computer or the instance store volumes of the host computer is gone. 存储在主机RAM或实例存储卷中的所有数据都消失了。

Another Way if you want minimal Downtime is you can create an AMI of it and Spin up new instance with Instance type and size what ever you desire and assign the domain or Elastic IP of current instance to new one and terminate old instance. 如果您希望减少停机时间的另一种方法是,您可以为其创建AMI,并使用所需的实例类型和大小启动新实例,然后将当前实例的域或弹性IP分配给新实例并终止旧实例。

Also Regarding The RDS Licensing Please Mention what you mean by upgrading , but there will an outage when you apply for instance upgrade or License is Modified. 另外,关于RDS许可,请提及升级的含义,但是当您申请实例升级或许可证被修改时,将会出现中断。

Also Upgrading EC2 Instance has no affect on Existing RDS as both are different services. 另外,升级EC2实例对现有RDS也不起作用,因为两者都是不同的服务。

For Reference on Ms SQL DB , Please read these AWS Documentation: 有关SQL DB女士的参考,请阅读以下AWS文档:

Modifying a DB Instance Running the Microsoft SQL Server Database Engine 修改运行Microsoft SQL Server数据库引擎的数据库实例

Microsoft SQL Server on Amazon RDS Amazon RDS上的Microsoft SQL Server

As m4.large is EBS backed instance. 由于m4.large是EBS支持的实例。 so the loss of data is not a concern in the above question. 因此,数据丢失不是上述问题中的关注点。 Just select->right click-> stop the instance and change the instance type to m4.xlarge by right click->instance settings->instance type. 只需选择->右键单击->停止实例,然后通过右键单击->实例设置->实例类型将实例类型更改为m4.xlarge。

Also for your second question RDS is a separate service, so it won't get affected. 另外,对于您的第二个问题,RDS是一项单独的服务,因此不会受到影响。

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

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