Last active
October 5, 2015 06:12
-
-
Save relax-more/56fd60b43c8c117b3df2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux - ぜんぶTIME_WAITのせいだ! - Qiita / | |
http://qiita.com/kuni-nakaji/items/c07004c7d9e5bb683bc2 | |
TCP/IP で TIME_WAIT が残る時間を短くする / | |
http://network.station.ez-net.jp/server/linux/network/time_wait.asp | |
TCPのTIME_WAITを無くす! | 田舎に住みたいエンジニアの日記 / | |
http://blog.ybbo.net/?p=128 | |
TIME_WAIT状態のTCPコネクションを早く終了させるべくKernelをリビルド - 元RX-7乗りの適当な日々 / | |
http://d.hatena.ne.jp/rx7/20131204/p1 | |
技術的詳細については参照先を参考に。 | |
カーネルチューニングのパラメータの数値だけ追ってたらダメですね。反省。 | |
サーバの用途や負荷状態にも依るのでしょうが、とりあえず自宅環境は以下の感じ。 | |
? | |
1 | |
2 | |
3 | |
net.ipv4.tcp_tw_recycle = 0 | |
net.ipv4.tcp_tw_reuse = 1 | |
net.ipv4.tcp_fin_timeout = 60 | |
net.ipv4.tcp_tw_reuse だけ有効にした感じですね。一応他のパラメータはdefaultですが明示的に記述するようにしました。 | |
もしかして以前PowerDNS recursorの調子が悪かったのもこれが関係していたのだろうか・・・ | |
Coping with the TCP TIME-WAIT state on busy Linux servers | Vincent Bernat / | |
http://vincent.bernat.im/en/blog/2014-tcp-time-wait-state-linux.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://vincent.bernat.im/en/blog/2014-tcp-time-wait-state-linux.html | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment