informatique:system_admin:tcp
Ceci est une ancienne révision du document !
TCP
Les machines sont puissantes, le réseau est rapide, et pourtant à partir d'un certain nombre de connexions TCP des erreurs apparaissent, comme too many open files
.
Sources:
Sur les performances:
$ cat /etc/sysctl.d/local.conf # Increase number of incoming connections # debian 10.4 = 128 net.core.somaxconn = 1024 # Increase number of incoming connections backlog # debian 10.4 = 1000 net.core.netdev_max_backlog = 4096 # Decrease the time default value for tcp_fin_timeout connection net.ipv4.tcp_fin_timeout = 15 # Decrease the time default value for connections to keep alive net.ipv4.tcp_keepalive_time = 300 net.ipv4.tcp_keepalive_probes = 5 net.ipv4.tcp_keepalive_intvl = 15 # try to reuse time-wait connections, but don't recycle them (recycle can break clients behind NAT) net.ipv4.tcp_tw_recycle = 0 net.ipv4.tcp_tw_reuse = 1 # Limit number of orphans, each orphan can eat up to 16M (max wmem) of unswappable memory net.ipv4.tcp_max_orphans = 16384 net.ipv4.tcp_orphan_retries = 0 # How many times to retry killing an alive TCP connection net.ipv4.tcp_retries2 = 15 net.ipv4.tcp_retries1 = 3
informatique/system_admin/tcp.1594101884.txt.gz · Dernière modification : 07/07/2020 08:04 de cyrille