kernel: TCP: time wait bucket table overflow problem

WBOY
Release: 2016-08-08 09:26:50
Original
1351 people have browsed it

kernel: TCP: time wait bucket table overflow problem

I recently used elk to collect system logs and found that some machines have many kernel errors
Most of the opinions on the Internet are to increase the kernel parameter net.ipv4.tcp_max_tw_buckets. But I didn’t explain the principle

I thought about it, and actually tw_buckets means time wait bucket table. The table is full.
Why is it full?

<code>netstat -an<span>|more</span></code>
Copy after login

See the link of time_out
Usually it is port 80, which is caused by the web server, so it is natural to think of keepalived.

After that, what I did was to turn off keepalived, and then adjust the value of tcp_max_tw_buckets to 2w. After observing, basically there is no such alarm.

Especially for some clusters that require forwarding backends, I personally think it is best to turn off keepalive, so that fewer connections will be maintained.

The above introduces the problem of kernel: TCP: time wait bucket table overflow, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template