You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@minhuw I believe tunning tcp_fin_timeout + tcp_tw_reuse / tcp_tw_recycle will help you WRT reusing TW connections and also reduce the TIMEWAIT connections in total.
However, it's essential to carefully test and evaluate the impact of enabling these parameters in your specific environment, as their behavior can vary depending on the network configuration and application requirements.
I found that when
reconnect-interval
is small, local ports exhaust quickly before the experiment completes as the log below shows.I find that
SO_LINGER
is not enabled so closed TCP connections go to theTIMEWAIT
state instead of releasing local ports immediately.memtier_benchmark/shard_connection.cpp
Lines 229 to 235 in 4203084
It works if I enable
SO_LINGER
as follows thus aborting the connection immediately when it is closed.Is there any reason
SO_LINGER
is not enabled? Any workaround so I could test the scenario whenreconnect_interval
is very small?The text was updated successfully, but these errors were encountered: