Azure Linux VM configuration cannot connect after load balancing

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.