Kernel: TCP: time wait bucket table overflow problem, bucketoverflow

Source: Internet
Author: User

Kernel: TCP: time wait bucket table overflow problem, bucketoverflow
Kernel: TCP: time wait bucket table overflow

Recently, elk was used to collect system logs and many Kernel errors were reported on some machines.
Most of the online arguments are to increase the Kernel Parameter net. ipv4.tcp _ max_tw_buckets. But I didn't say how it works.

I thought about it. In fact, tw_buckets means that the table of time wait bucket table is full.
Why is it full?

Netstat-an | more

View the time_out Link
It is generally caused by port 80, which is the web server, so it is natural to think of keepalived.

My practice is to turn keepalived off, and then adjust the value of tcp_max_tw_buckets to 2 w. Then, observe that this alarm is basically absent.

In particular, some clusters need to forward backend services. I personally think it is best to disable keepalive so that fewer connections will be maintained.

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.