github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/bench/tools/aisloader-composer/playbooks/vars/sysctl_config.yaml (about)

     1  sysctl_network_tweaks:
     2    - name: net.ipv4.tcp_tw_reuse
     3      value: 1
     4      default: 2
     5      state: present
     6      comment: If sockets hang around in timewait state for long then (since we're PUTting and GETting lots of objects) we very soon find that we exhaust local port range. So we stretch the available range of local ports (ip_local_port_range), increase the max number of timewait buckets held by the system simultaneously (tcp_max_tw_buckets), and reuse sockets in timewait state as soon as it is "safe from a protocol point of view" (whatever that means, tcp_tw_reuse).
     7    - name: net.ipv4.ip_local_port_range
     8      value:   2048 65535 
     9      default: 32768 60999 
    10      state: present
    11      comment: See comment for tw_reuse
    12    - name: net.ipv4.tcp_max_tw_buckets
    13      value:   1440000
    14      default:  262144
    15      state: present
    16      comment: See comment for tw_reuse