- 最新
- 最多得票
- 最多評論
it appears that the health check of the target group is failing, which is resulting in the "unhealthy" status. The health check failure code 303 suggests that the HTTP request to the target is being redirected to a different location.
Here are a few things you can check:
Health check settings: Make sure that the health check settings in the target group are configured correctly. Check the protocol, port, and path of the health check to ensure that they match the settings of your application.
Security group settings: Ensure that the security group of the instances allows traffic from the load balancer. Also, make sure that the security group of the load balancer allows traffic to the instances.
Application configuration: Verify that your application is configured to respond to requests from the load balancer. Ensure that the application is listening on the correct port and is not redirecting the requests to a different location.
Network settings: Check the network configuration of the instances to ensure that they can receive traffic from the load balancer. Make sure that the instances are not blocking traffic from the load balancer by using a firewall or other network security settings.
I hope these hints help you to identify and resolve the issue.
You'll need to enable VPC peering between your AWS account default VPC and Lightsail.
I was able to create an application load balancer in my account that has a target group with "IP" target type. I needed to register IP addresses of my Lightsail instances using a command like this:
aws elbv2 register-targets --target-group-arn TARGET_GROUP_ARN \
--targets Id=PRIVATE_IP1,AvailabilityZone=all Id=PRIVATE_IP2,AvailabilityZone=all
- The load balancer must be in your default VPC so that it can peer with the resources in the Lightsail VPC.
- In each Lightsail instance's firewall settings, you will need to allow TCP traffic on port 1010 from your default VPC's CIDR (e.g.
172.31.0.0/16
, but actual value of this CIDR can be found in VPC console for your default VPC) - In the command above, you will need to specify
TARGET_GROUP_ARN
,PRIVATE_IP1
andPRIVATE_IP2
which are the private ip addresses of your two Lightsail instances.
More details can be found here: https://repost.aws/knowledge-center/lightsail-add-application-load-balancer
相關內容
- AWS 官方已更新 1 年前
- AWS 官方已更新 3 年前
- AWS 官方已更新 3 個月前
- AWS 官方已更新 3 年前