About recovery operation when AZ failure occurs

0

When a website system is configured by combining a multi-AZ configuration and an ALB When an AZ failure occurs, I think the EC2 on the failure side will be separated, but please tell me what will happen when the AZ failure is recovered.Automatic If there is a document page that can be used as a reference, such as whether the connection will be restored on a regular basis, please share that as well.

질문됨 2년 전338회 조회
1개 답변
1

Hi,

When there is an AZ failure, the health checks on the ALB would fail on the basis of unhealthy threshold and stop sending traffic to the instance in failed AZ. The health checks continue in the background and when the AZ recovers the instance is marked healthy after meeting the success threshold. For the duration that the EC2 remains unhealthy due to the supposed AZ failure, the ASG health checks define what happens to the unhealthy instance (if the instances were part of the ASG & ideally should be for multi AZ config). The default is EC2 health checks in ASG, which means that the instance would be replaced only if the instance has a hardware failure and is impaired. You can also set it to ELB health check type in ASG, where the instance would be auto replaced due to being marked unhealthy by the ALB and to maintain the desired count

If you manually added the instances in different AZ to the ALB ( ie. no ASG), then the instance would only be marked unhealthy and not receive traffic for the duration of the AZ failure but wont be terminated. Once the AZ recovers, the instance would start receiving traffic.

Some useful links:

https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-add-elb-healthcheck.html

--Syd

profile picture
Syd
답변함 2년 전
profile pictureAWS
전문가
Chris_G
검토됨 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠