实例停用:实例停止

Instance Retirement: Instance-stop

我们最近收到了关于我们的一个实例的以下通知:

Retiring: This instance is scheduled for retirement after December 14, 2015 at 7:00:00 PM UTC-5.

Instances that are scheduled for retirement will be shut down after the specified date. We recommend that you launch replacement instances and start migrating to them.

Availability Zone: us-east-1c
Event type: instance-stop
Event status: Scheduled
Description: The instance is running on degraded hardware
Start time: December 14, 2015 at 7:00:00 PM UTC-5

进一步的细节表明事件类型是instance-stop。根据 documentation:

Instance stop: The instance will be stopped and started to migrate it to a new host computer. Applies only to instances backed by Amazon EBS.

Instance retirement: The instance will be terminated.

Reboot: Either the instance will be rebooted (instance reboot) or the host computer for the instance will be rebooted (system reboot).

System maintenance: The instance might be temporarily affected by network maintenance or power maintenance.

实例停止。这是否意味着我们不必做任何事情?如果没有,我们必须做些什么来避免服务中断?

如果您的实例不在 Auto Scaling 组中,则以下解决方案有效。

我假设您是 运行 VPC 中的实例。除非您有某种 HA,否则您无法避免服务中断。如果根设备类型是 ebs,您有 2 个选项。

1) 您可以创建实例的 AMI。从该 AMI 启动一个新实例,然后停止旧实例。

2) 我一直喜欢的最简单的选项:停止您的实例并重新启动它。而已。将自动选择新的物理硬件。如果您的旧实例有一个 public IP,您的新实例将获得一个新的 public IP。但是,如果您的实例具有与之关联的弹性 IP,则您无需执行任何操作。