internetstandards / Internet.nl

Internet standards compliance test suite
https://internet.nl
166 stars 36 forks source link

Document TCP tuning settings #1339

Open bwbroersma opened 4 months ago

bwbroersma commented 4 months ago

I noticed this note in the Knot DNS documentation:

Note

When transferring a lot of zones, the server may easily get into a state where all available ports are in the TIME_WAIT state, thus transfers cease until the operating system closes the ports for good. There are several ways to work around this:

  • Allow reusing of ports in TIME_WAIT (sysctl -w net.ipv4.tcp_tw_reuse=1)
  • Shorten TIME_WAIT timeout (tcp_fin_timeout)
  • Increase available local port count

Since Internet.nl had issues before with open connections, and I could not find these settings in the documentation, maybe test / document these?