ASG EC2 HealthCheck

0

When my ASG creates a new instance, in the Target group it registers a target on port 80 that is unhealthy , I see that this corresponds to the EC2 HealthCheck that brings by default the ASG. How can I disable this? Since my SG has the port 80 open external and internal, my new instance is correct but the healthCheck is wrong and I have to delete it manually.

Error

1개 답변
1

You can change the health check type for your ASG from EC2 to ELB, which will then use the health status from the load balancer rather than checking the instance directly.

Amazon EC2 status checks and scheduled events is the default health check type for an Auto Scaling group.

Key source:

profile picture
전문가
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
  • Inside my instance I have validated with aws autoscaling describe-auto-scaling-instances --instance-ids and my ec2 is in HealthStatus": "HEALTHY, but in the TargetGroup it still says unhealthy on port 80. I have changed the time of the first healthcheck in the ASG to 15 minutes and I still can't resolve it.

  • Any log that can be searched? I have no log in Cloudwatch for this event.

  • Apologies for the delayed response. I wasn't notified by AWS re:post when someone commented on my answer. I found this out by checking which answers hadn't been addressed.


    You must ensure that the security groups for your instances allow the load balancer to communicate with your instances on both the listener port and the health check port.

    ℹ️ This resource serves as a valuable tool for verifying Target security groups.

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

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

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

관련 콘텐츠