1 Answer
- Newest
- Most votes
- Most comments
0
To properly set up the NLB (Network Load Balancer) to ALB (Application Load Balancer) architecture for your Elastic Beanstalk application and ensure it is accessible from the internet, follow these steps for debugging and configuration:
Steps to Debug and Configure NLB -> ALB Architecture
-
Security Groups:
- Ensure that the security group associated with your NLB allows inbound traffic on the required ports (e.g., TCP port 80 for HTTP).
- Verify that the security group for your Elastic Beanstalk instances allows traffic from the NLB’s security group.
-
Subnet Configuration:
- Confirm that the subnets where the NLB and ALB are deployed are public subnets, meaning they have a route to an internet gateway.
-
Health Checks:
- Make sure the health checks on the NLB target group are correctly configured. The health check protocol should match what your application responds to (e.g., HTTP or TCP).
- Test the health of your instances by accessing the ALB directly to ensure they are healthy.
-
Listener Configuration:
- Ensure that the listener on the NLB is set up to forward traffic correctly to the ALB. Since ALB uses HTTP/HTTPS, ensure the listener is set to forward traffic to the ALB on the appropriate port.
-
Check the ALB Target Group:
- Verify that your Elastic Beanstalk instances are registered correctly with the ALB target group and that they are healthy. You can check this in the AWS console under the EC2 section.
-
Elastic IP:
- When you enter the Elastic IP in your browser and receive a timeout, it could be due to the NLB not properly routing the traffic. Check the target group and listener configuration.
Additional Steps:
-
Test Direct ALB Access:
- Before using the NLB, test accessing your application directly through the ALB to confirm it is working correctly.
-
Logs and Monitoring:
- Enable logging for both the NLB and ALB to gather more insights on traffic and potential issues.
- Use CloudWatch metrics to monitor the health and performance of both load balancers.
Can you also post output of curl or telnet to the NLB IP?
Relevant content
- asked a year ago
