In the health check of a load balancer, the UDP and Ping packets are used to obtain the status of the backend ECS. You must ensure that Internet Control Message Protocol (ICMP) is enabled on the backend ECS.
Log in to the backend ECS and run the following command as user root:
cat /proc/sys/net/ipv4/icmp_echo_ignore_all
If the returned value is 1, ICMP is disabled. If the returned value is 0, ICMP is enabled.
If UDP is used, the health check result may be different from the actual status of ELB.
If the backend ECS runs Linux, the sending rate of ICMP packets on the ECS will be restricted due to the anti-ICMP attack protection mechanism. In this case, even when a service exception has occurred, ELB does not receive the error message "port XX unreachable" and still determines that the health check is successful. This results in an inconsistency between the health check result and the actual ELB status.
A listener using UDP is not allowed for a private network load balancer.
Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
Politically sensitive content
Content concerning pornography, gambling, and drug abuse
Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."