개요

AWS Console 에 들어가서 Instance 를 보는데 다음과 같은 알림 메시지가 뜨는 걸 발견했습니다.

Retiring: This instance is scheduled for retirement after July 2, 2019 at 10:00:00 AM UTC+9.
CODE


AWS 에서 처음 보는 메시지라 검색을 해 보았더니 "인스턴스 만료" 라는 AWS 문서가 나오더군요.


요약하면 EC2 인스턴스의 H/W 장애등 복구 불가능한 문제가 발생할 경우 해당 인스턴스는 "만료 대상" 으로 예약되고 "예약 만료 날짜"에 도달하면 인스턴스가 자동으로 AWS 에 의해 중지되거나 종료됩니다.


처리

처리 방법은 아주 간단한대 해당 인스턴스를 중지하고 재시작하면 AWS 에서 자동으로 migration 을 수행해 준다고 합니다.

실제로 인스턴스 중지후 재시작했더니 새로운 서버로 자동으로 이전되었습니다. (대신 할당된 public IP 는 자동으로 변경되더군요.)


해당 instance 는 t3 를 사용하고 t3는 출시 1년도 되지 않았는데 벌써 H/W 장애가 발생하다니 instance 뽑기 운이 나빴나 봅니다. 


다시 생각해 보니 앞으로도 이런 일을 겪을수 있을텐데 미리 알게 됐으니 운이 좋았다고 할수도 있겠네요.

또 클라우드도 서버 장비 장애가 생길텐데 어떻게 처리 하나 궁금한적이 있었는데 그런 궁금증도 풀수 있었고요.


자세한 내용은 AWS 계정에 등록된 이메일로도 오니 AWS 에 등록한 이메일 계정을 가끔 살펴 보세요.


Hello,

EC2 has detected degradation of the underlying hardware hosting your Amazon EC2 instance (instance-ID: i-001bba82a45cee8ae) associated with your AWS account (AWS Account ID: 1111) in the ap-northeast-2 region. Due to this degradation your instance could already be unreachable. We will stop your instance after 2019-07-02 01:00 UTC.

You can find more information about maintenance events scheduled for your EC2 instances in the AWS Management Console (https://console.aws.amazon.com/ec2/v2/home?region=ap-northeast-2#Events)

* What will happen to my instance?
Your instance will be stopped after the specified retirement date. You can start it again at any time after it’s stopped. Any data on local instance-store volumes will be lost when the instance is stopped or terminated.

* What do I need to do?
We recommend that you stop and start the instance which will migrate the instance to a new host. Please note that any data on your local instance-store volumes will not be preserved when you stop and start your instance. For more information about stopping and starting your instance, and what to expect when your instance is stopped, such as the effect on public, private and Elastic IP addresses associated with your instance, see Stop and Start Your Instance in the EC2 User Guide (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html). However, if you do not need this instance, you can stop it at any time yourself or wait for EC2 to stop it after the retirement date.

* Why is EC2 retiring my instance?
EC2 may schedule instances for retirement in cases where there is an unrecoverable issue with the underlying hardware. For more information about scheduled retirement events please see the EC2 user guide (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-retirement.html). To avoid single points of failure within critical applications, please refer to our architecture center for more information on implementing fault-tolerant architectures: (http://aws.amazon.com/architecture)


참고