Unable to hit Elastic load balancer

0

We are setting up an environment on AWS. We have used elastic beanstalk for setting up the environment. By using elastic beanstalk, we have launched EC2 instance. EC2 instance have been setup properly and able to hit server running on EC2 instance using Ec2 public IP through postman. But when I am trying to hit the same api using domain provided by Elastic Beanstalk, it is not working.

I have checked for VPC setting, security groups, load balancer setting etc and all seems fine to me. But still not able to hit the server through domain name. Also getting the below error on elastic beanstalk health tab:** Instance ELB health has not been available for 13 days.**

  • The issue has been solved. There is one configuration of process in Elastic BeanStalk where we need to define the port on which our application is running . This port configuration we wrong and after setting it up correctly, the server works properly and health check also become green.

2개 답변
1

Hello,

I think you need to set the health check path of your application on the ELB properly which could be the reason for your issue.

Thanks

답변함 3달 전
  • We have set that also and I can see it is being hit periodically on the application logs. But still no luck :)

  • The issue has been solved. There is one configuration of process in Elastic BeanStalk where we need to define the port on which our application is running . This port configuration was wrong and after setting it up correctly, the server works properly and health check also become green.

0

Please can you provide details of the security groups for the ALB and EC2s along with the health check settings

profile picture
전문가
답변함 3달 전
  • For this EC2 instance, we are using one auto scaling group. Inside that auto scaling group, we are having one security group which have the below configuration as inbound and outbound.

    Inbound Rules 1:

    IP version: Type: HTTP Protocol: TCP Port Range: 80

    Inbound Rules 2:

    IP version: Type: All Traffic Protocol: All Port Range: All

    Inbound Rules 3:

    IP version: Ipv4 Type: All Traffic Protocol: All Port Range: All

    Outbound Rules 1:

    IP version: Ipv4 Type: All Traffic Protocol: All Port Range: All

    My understanding is that issue is not due to security rules.

  • The issue has been solved. There is one configuration of process in Elastic BeanStalk where we need to define the port on which our application is running . This port configuration we wrong and after setting it up correctly, the server works properly and health check also become green.

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

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

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

관련 콘텐츠