Failure phenomena:
=====================
After you configure load balancing, when there is only one server behind the load balancer, your Web The service can be accessed normally, and if you add another server to the load balancer set, Web The service is unreachable, and if a server is removed from the load balancer set , Web services are still not accessible through public networks. When you remove a load balancer reconfiguration and there is only one server behind the load balancer, theWeb Service can be accessed normally through the public network.
Solution:
======================
in the L Inux VMs Modify the following parameters in the
Net.ipv4.tcp_tw_reuse
#表示开启重用. Allows time-wait sockets to be re-used for new TCP connections, which defaults to 0, which means shutdown;
Net.ipv4.tcp_tw_recycle
#表示开启TCP连接中TIME-wait sockets, the default is 0, which means close.
Azure Linux VM configuration cannot connect after load balancing