NLB 上的不健康目标
Unhealthy targets on NLB
我正在尝试在网络负载平衡器后面的端口 8081 运行 上部署一个 java 应用程序 运行。现在我不确定自己做错了什么,但健康检查失败了。
以下是我配置的详细信息 -
侦听端口 443 (TLS) 的侦听器,将流量转发到 TCP 端口 8081 上的目标组。
我已经通过 运行 netstat -ltpn 检查了实例上的端口,它显示 java 是端口 8081 上的 运行。
那么可能是什么问题?
提前致谢。
NLB 正在使用目标实例的安全组,您需要将 NLB 的 IP 列入白名单。
经验法则
- 如果运行状况检查失败,实例有问题
- 如果目标是健康的,那么 LB 有问题。
仔细检查应允许来自 8081
的流量的实例安全组。
- 尝试
telnet localhost 8081
端口,有时端口被占用但没有响应健康检查。
- 验证目标组健康中的健康检查端口是否正确
注:
If you have more than one private subnet in the same Availability
Zone that contains instances that need to be registered with the load
balancer, you only need to create one public subnet. You need only one
public subnet per Availability Zone; you can add the private instances
in all the private subnets that reside in that particular Availability
Zone.
发现8081端口的防火墙在golden AMI中被屏蔽了。必须使用 firewall-cmd 打开它。
我正在尝试在网络负载平衡器后面的端口 8081 运行 上部署一个 java 应用程序 运行。现在我不确定自己做错了什么,但健康检查失败了。
以下是我配置的详细信息 -
侦听端口 443 (TLS) 的侦听器,将流量转发到 TCP 端口 8081 上的目标组。
我已经通过 运行 netstat -ltpn 检查了实例上的端口,它显示 java 是端口 8081 上的 运行。 那么可能是什么问题?
提前致谢。
NLB 正在使用目标实例的安全组,您需要将 NLB 的 IP 列入白名单。
经验法则
- 如果运行状况检查失败,实例有问题
- 如果目标是健康的,那么 LB 有问题。
仔细检查应允许来自 8081
的流量的实例安全组。
- 尝试
telnet localhost 8081
端口,有时端口被占用但没有响应健康检查。 - 验证目标组健康中的健康检查端口是否正确
注:
If you have more than one private subnet in the same Availability Zone that contains instances that need to be registered with the load balancer, you only need to create one public subnet. You need only one public subnet per Availability Zone; you can add the private instances in all the private subnets that reside in that particular Availability Zone.
发现8081端口的防火墙在golden AMI中被屏蔽了。必须使用 firewall-cmd 打开它。