Comments - Reuse connections to avoid port starvation
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
There are a bunch of sysctl kernel parameters that will aid in a speedy reuse of ports
net.ipv4.tcp_tw_recycle=1 net.ipv4.tcp_tw_reuse=1 net.ipv4.tcp_fin_timeout=20 (default is 60)
Notes about this will confuse NAT if if that plays a role in your connections.
There is a bit of discussion around this on https://stackoverflow.com/questions/410616/increasing-the-maximum-number-of-tcp-ip-connections-in-linux
Own research recommented.