Skip to content

Implement providing configuration for TCP_USER_TIMEOUT to linkerd-proxy#13024

Merged
olix0r merged 5 commits intolinkerd:mainfrom
UsingCoding:set-tcp-user-timeout
Oct 3, 2024
Merged

Implement providing configuration for TCP_USER_TIMEOUT to linkerd-proxy#13024
olix0r merged 5 commits intolinkerd:mainfrom
UsingCoding:set-tcp-user-timeout

Conversation

@UsingCoding
Copy link
Contributor

Implement providing configuration for LINKERD2_PROXY_INBOUND_ACCEPT_USER_TIMEOUT and LINKERD2_PROXY_OUTBOUND_CONNECT_USER_TIMEOUT to linkerd-proxy. Default values for 30s will be enough to linux TCP-stack completes about 7 packages retransmissions, after about 7 retransmissions RTO (retransmission timeout) will rapidly grows and do not make much sense to wait for too long. Setting TCP_USER_TIMEOUT between linkerd-proxy and wild world is enough, since connections to containers in same pod is more stable and reliable

Fixes #13023

Implement providing configuration for LINKERD2_PROXY_INBOUND_ACCEPT_USER_TIMEOUT and LINKERD2_PROXY_OUTBOUND_CONNECT_USER_TIMEOUT to linkerd-proxy. Default values for 30s will be enough to linux TCP-stack completes about 7 packages retransmissions, after about 7 retransmissions RTO (retransmission timeout) will rapidly grows and do not make much sense to wait for too long. Setting TCP_USER_TIMEOUT between linkerd-proxy and wild world is enough, since connections to containers in same pod is more stable and reliable

Fixes linkerd#13023

Signed-off-by: UsingCoding <extendedmoment@outlook.com>
@UsingCoding UsingCoding requested a review from a team as a code owner September 4, 2024 20:41
@UsingCoding
Copy link
Contributor Author

@olix0r olix0r enabled auto-merge (squash) October 3, 2024 15:02
@olix0r olix0r merged commit 005a3a4 into linkerd:main Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement TCP_USER_TIMEOUT to detect half-opened TCP connections leading to 15min of dangling connections

2 participants